Skip to main content

Module client

Module client 

Source
Expand description

The chat client trait and the automatic function-invocation loop.

Rust equivalent of agent_framework._clients plus the tool loop from _tools.use_function_invocation.

Structs§

FunctionInvokingChatClient
Wraps a ChatClient to automatically execute local tool calls in a loop, mirroring use_function_invocation.
RetryPolicy
Policy controlling RetryingChatClient backoff.
RetryingChatClient
A ChatClient decorator that retries transient failures with exponential backoff, honoring a server Retry-After when present.

Enums§

RetryOn
Which errors a RetryPolicy considers retryable.

Traits§

ChatClient
The interface every chat client implements.
EmbeddingClient
The interface every embedding client implements.

Type Aliases§

ChatStream
A boxed stream of streaming chat updates.