AgentAdministrationClient.GetSessionLogStream Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Streams console logs (stdout / stderr) for a specific hosted agent session as a Server-Sent Events (SSE) stream. Each SSE frame contains:
- `event`: always `"log"`
- `data`: a plain-text log line (currently JSON-formatted, but the schema
public virtual System.ClientModel.ClientResult<Azure.AI.Projects.Agents.SessionLogEvent> GetSessionLogStream(string agentName, string agentVersion, string sessionId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSessionLogStream : string * string * string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.Agents.SessionLogEvent>
override this.GetSessionLogStream : string * string * string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.Agents.SessionLogEvent>
Public Overridable Function GetSessionLogStream (agentName As String, agentVersion As String, sessionId As String, Optional cancellationToken As CancellationToken = Nothing) As ClientResult(Of SessionLogEvent)
Parameters
- agentName
- String
The name of the hosted agent.
- agentVersion
- String
The version of the agent.
- sessionId
- String
The session ID (maps to an ADC sandbox).
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
agentName, agentVersion or sessionId is null.
agentName, agentVersion or sessionId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.