Skip to main content

Env variables

Initialize Maxim logger

Initialize MaximOpenAIClient

Sample agent using Summarization agent from OpenAI cookbooks

The following agent uses the Context summarization agent from OpenAI cookbooks with additional tools for general tasks.
You can view the trace of the above agents’ interactions on the Maxim dashboard, which provides detailed insights and visualizations of the entire process.

Additional headers

You can pass in any of the following headers to the Realtime API connection for some additional enrichment to the sessions:
  • maxim-session-name: Custom name for the session to be created.
  • maxim-session-tags: A map of tags for the session to be created.
  • maxim-session-id: Custom ID for the session to be created.
These would be passed to the extra_headers parameter of the connect method.