AIP Agent Studio does not support compute module functions as tools

When I include compute modules functions as tools, I get errors like the one below. Switching to 24 hour mode does nothing. When will support be added? Is the work around to proxy compute module functions in functions v1?

Error Instance ID:
a1b52381-4349-4604-9a5f-597d1670df42
Error Code:
CUSTOM_CLIENT
Error Name:
AipAgents:FailedToScopeAgentExecution

Arguments:
agentRid:
Optional[ri.aip-agents..agent.ace6b25a-b4c4-48a8-b07e-5260e47003ba]
sessionRid:
ri.aip-agents..session.9ab9a91b-164d-4596-8044-122dc8b5e056
params:
{validationErrors=[ValidationError{value: UnsupportedResourceTypeForScopeWrapper{value: UnsupportedResourceTypeForScope{resourceType: statefulFunction, resource: ri.function-registry.main.function.277af319-3df8-49cc-b023-a1200fffb011}}}, ValidationError{value: UnsupportedResourceTypeForScopeWrapper{value: UnsupportedResourceTypeForScope{resourceType: statefulFunction, resource: ri.function-registry.main.function.b36eec90-05f0-496b-b1dd-8c2b89282fa7}}}]}


Well thisis not an issue with compute module functions. Creating a set of proxy functions produces the same error. The recommended work around in the error message does nothing. How can I use tools in AIP Agent Studio?

Hello!

As the error suggests, we don’t support using “stateful” functions like a compute module when in indefinite session retention mode in Agents. This is a security mechanism where we generally distrust compute modules in “scoped” execution mode (like AIP logic’s project-scoped mode or AIP agents’ indefinite retention mode)

Switching your agent to 24 hour retention should unblock you here!

Switching to 24 hour retention does not unblock me. I also proxied the functions using functions v1 which did not resolve the error.

Hello,

it looks like you are still using indefinite session retention mode in that latest screenshot. Can you switch to using 24 hour retention mode and try it again?

1 Like


I would clean up your UI as this was extremely confusing. The option from the setting panel to “Switch back to the legacy ontology context and tool selection. Conversations will expire after 24 hours of inactivity in this mode.” should have configured this setting but it did not. I will mark this as resolved with your asnwer as correct, but I imagine a lot of other people will hit the same issue.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.