Skip to main content
All Python modules · Import and compatibility guidance

Exports

AgentExecutionTimeout

An invocation exceeded its configured deadline.

AgentInfo

Portable metadata needed by every Harnest transport.
Fields (— means no declared default):

AgentRuntimeError

A compiled artifact cannot be loaded or served safely.

InvocationRequest

The complete input passed from a transport to a runtime driver.
Fields (— means no declared default):

InvocationResult

The normalized result of a non-streaming invocation.
Fields (— means no declared default):

NoCustomerFacingOutputError

Raised when a completed invocation contains no public answer or result.

ResponseRequest

Strict Pydantic body accepted by default by POST /responses.
Fields (— means no declared default):

RuntimeDriver

The only interface transports require from a framework runtime.

RuntimeDriver.info

Return immutable metadata and structured input/output contracts.

RuntimeDriver.create_session

Create one identity-scoped session or report a conflict.

RuntimeDriver.get_session

Resolve one session without revealing another identity’s records.

RuntimeDriver.list_sessions

List a bounded identity-scoped page after an optional key.

RuntimeDriver.get_session_messages

Return an owned transcript while preserving native metadata.

RuntimeDriver.update_session

Apply one state delta inside the session ownership boundary.

RuntimeDriver.delete_session

Delete one owned session and report whether it existed.

RuntimeDriver.invoke

Run one complete non-streaming portable invocation.

RuntimeDriver.stream

Yield normalized events for one portable invocation.

RuntimeDriver.close

Release framework and application resources idempotently.

RuntimeEvent

SessionConflictError

Raised by a driver when a requested session id already exists.

SessionMessage

One portable transcript item with lossless framework-owned metadata.
Fields (— means no declared default):

SessionRecord

A backend-independent view of a persisted agent session.
Fields (— means no declared default):

create_fastapi_app

Build a server with explicit policy and no UI when production assets are absent.

load_agent_card

Load the compiled YAML or JSON Agent Card.

load_compiled_agent

Load the selected framework’s managed or advanced target.

load_compiled_app

Load the native ADK App from an ADK compiled artifact.

load_compiled_application

Load the application and retain authored namespaces for lazy imports.

run_agent_message

Run one request through the same driver used by the HTTP server.