HttpSessionSource
A session that posts each run to an HTTP endpoint.
import type { HttpSessionSource } from '@threadplane/ag-ui';Declaration
export interface HttpSessionSource extends Pick<HttpAgentConfig, 'url' | 'headers' | 'fetch'> {
readonly agent?: undefined;
fetch?: HttpAgentConfig['fetch'];
headers?: HttpAgentConfig['headers'];
url: HttpAgentConfig['url'];
}Members
agent
Never set on an HTTP session: agent selects AgentSessionSource.
readonly agent?: undefined;fetch
The fetch to send requests with, in place of the global one.
fetch?: HttpAgentConfig['fetch'];headers
Headers sent with every request.
headers?: HttpAgentConfig['headers'];url
The endpoint each run is posted to.
url: HttpAgentConfig['url'];