Section 5 · Capture your first generation

Where the client gets its values, and what the conversation ID, the model, and the result in the sample stand for in your own agent.

Estimated time: 1 min

What each value in the sample means

The sample sets three values: a conversation ID, a model, and an output. Keep the sample open as you read.

Where the client gets its values

When you construct the client with no arguments, the SDK reads these variables at client construction:

  • AGENTO11Y_ENDPOINT
  • AGENTO11Y_PROTOCOL
  • AGENTO11Y_AUTH_MODE
  • AGENTO11Y_AUTH_TENANT_ID
  • AGENTO11Y_AUTH_TOKEN

The three values

Each value in the sample is a fixed stand-in for something your agent supplies.

ValueIn the sampleWhat it means
conversation_idconv-1Agent Observability groups generations by conversation_id into conversations, so this value decides which generations appear together as one interaction thread.
Modelopenai and gpt-4oThe model provider and name, for example openai/gpt-4o.
ResultHelloThe generation’s output message. The sample sets the fixed text Hello as the output.

In your own agent, set conversation_id to one value per conversation thread, for example your chat session ID, and pass the same value on every generation in that thread. A new value on every request makes each request its own conversation. If you leave conversation_id empty, the generation is still stored, but it does not appear in Conversations.

If your agent is in .NET, the sample calls the OpenAI provider helper, so the result comes from the model rather than from the fixed text Hello.