praval.providers.cohere๏ƒ

Cohere provider implementation for Praval framework.

Provides integration with Cohereโ€™s chat models through their Chat API with support for conversation history.

Classes

CohereProvider(config)

Cohere provider for LLM interactions.

class praval.providers.cohere.CohereProvider(config)[source]๏ƒ

Bases: object

Cohere provider for LLM interactions.

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

Generate a response using Cohereโ€™s Chat API.

Return type:

str

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

Resume an interrupted Cohere tool-call flow from persisted state.

Return type:

str

Parameters: