praval.providers.anthropic๏ƒ

Anthropic provider implementation for Praval framework.

Provides integration with Anthropicโ€™s Claude models through the Messages API with support for conversation history and system messages.

Classes

AnthropicProvider(config)

Anthropic provider for LLM interactions.

class praval.providers.anthropic.AnthropicProvider(config)[source]๏ƒ

Bases: object

Anthropic provider for LLM interactions.

__init__(config)[source]๏ƒ
generate(messages, tools=None, hitl_context=None)[source]๏ƒ

Generate a response using Anthropicโ€™s Messages API.

Return type:

str

Parameters:
resume_tool_flow(suspended_state, tools, hitl_context=None)[source]๏ƒ

Resume an interrupted Anthropic tool-use flow from persisted state.

Return type:

str

Parameters: