Skip to main content

Module tools_driver

Module tools_driver 

Source
Expand description

The genai tool-calling driver (PSP-9 system 4).

This is the driver half of the transport: it renders the harness’s provider-neutral turn into a genai ChatRequest with tools, executes it, and maps the response back. The types here are the core-native mirror of the SDK contract — perspt-core must not depend on perspt-sdk, so the shapes exist twice by design and perspt-agent::transport performs the one translation.

Structs§

CoreGenerationConfig
Optional provider generation controls for one core turn.
CoreToolCall
Mirror of the SDK’s ProviderToolCall.
CoreToolSpec
Mirror of the SDK’s ToolSpec.

Enums§

CoreMessage
Mirror of the SDK’s Message.
CoreToolChoice
Mirror of the SDK’s ToolChoicePolicy.
CoreTurnOutput
Mirror of the SDK’s TurnOutput.
CoreTurnStreamEvent
User-facing stream events from a tool-aware model turn.