smelly
AEAsh Elixir
•Created by smelly on 5/12/2025 in #support
Return only selected fields
Oh interesting idea to have the agent specify., Initial thought was to have a return format on the tool call
30 replies
AEAsh Elixir
•Created by smelly on 5/12/2025 in #support
Return only selected fields
Yeah think Im misunderstanding as well.
If i do the following on the resource it applies to all read actions and returns only those fields for the different reads using the tools. I have tried a bunch of different things, adding separate routes in the resource, in the domain, and adding default fields to those routes and they dont seem to apply. when using a tool I can check the json endpoint and get the correct default fields at say artists/default_fields
30 replies
AEAsh Elixir
•Created by smelly on 5/12/2025 in #support
Return only selected fields
Thanks Zach, if i have multiple read actions and want one to return the full query but the other one to only return the default fields is that possible? Currently i have only found im am able to apply default fields to all actions. Using this with tools in ash ai and have specific actions that i want to not return unneeded data to consume the context window. So just looking for a good way to do specific selects
30 replies
AEAsh Elixir
•Created by smelly on 5/12/2025 in #support
Return only selected fields
man still not getting it. this is in the domain?
30 replies
AEAsh Elixir
•Created by smelly on 5/12/2025 in #support
Return only selected fields
nice, now can the default select only apply to certain actions or does it have to apply to all? just trying to minimize the amount of unneeded data being returned
30 replies
AEAsh Elixir
•Created by smelly on 5/12/2025 in #support
Return only selected fields
Perfect. Then what happens on ash_ai when the tool is called?
30 replies
AEAsh Elixir
•Created by smelly on 5/12/2025 in #support
Return only selected fields
My brain is still working in sql, yes over an API. how do I get reduce the amount of unneeded data getting received when I make an api call over even use the code interface method.
30 replies