@threadplane/ag-uiInterfacev0.3.7

AgentSessionSource

A session over an AG-UI client agent the application built, HTTP or not, as the Angular adapter's toAgent(source) allowed. The session calls the agent's run with each request's full input; it does not use runAgent, and neither reads nor changes the agent's own messages and state.

import type { AgentSessionSource } from '@threadplane/ag-ui';

Declaration

export interface AgentSessionSource  {
  readonly agent: SessionAgent;
  readonly fetch?: undefined;
  readonly headers?: undefined;
  readonly url?: undefined;
}

Members

agent

The agent whose run the session calls for each request.

readonly agent: SessionAgent;

fetch

Never set with agent: the agent owns its transport.

readonly fetch?: undefined;

headers

Never set with agent: the agent owns its transport.

readonly headers?: undefined;

url

Never set with agent: the agent owns its transport.

readonly url?: undefined;