Get a chat session history via OSDK

Hello,

I want to fetch the content of an AIP Agent chat session via API call. I see this is doable with an endpoint but can I fetch this via the built-in SDK ?

I only see documentation for the “execute” endpoint:

And I also only see this endpoint in the generated SDK.

It looks like you are executing the agent as a function right? If you want to load the entire content of that session, you need to use a separate API call to getContent. It’s not possible to use the agent function to load this content.

Agents as functions provides a simplified abstraction for generation new completions for your specific agent, and can be included in your custom generated OSDK

For a wider list of capabilities for interacting with your agent/sessions, you need to use the platform APIs, and interact with those through the generic platform SDK instead

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