hap.types.agentsΒΆ
HAP type definitions for Haive agents.
This module defines HAP protocol types for exposing Haive agents, which are the primary building blocks of AI systems.
ClassesΒΆ
Request to update agent configuration. |
|
Request to execute an agent. |
|
Result from agent execution. |
|
Information about a Haive agent exposed through HAP. |
|
A step in agent reasoning (for agents that support it). |
|
Snapshot of agent state at a point in time. |
|
Statistics about agent usage. |
|
Information about a tool call made by an agent. |
|
Information about multi-agent systems. |
|
Information specific to RAG agents. |
|
Information specific to ReactAgent. |
|
Information specific to SimpleAgent. |
Module ContentsΒΆ
- class hap.types.agents.AgentConfigUpdate(/, **data: Any)ΒΆ
Bases:
pydantic.BaseModelRequest to update agent configuration.
- Parameters:
data (Any)
- class hap.types.agents.AgentExecutionRequest(/, **data: Any)ΒΆ
Bases:
pydantic.BaseModelRequest to execute an agent.
This is the primary tool for agent execution through HAP.
- Parameters:
data (Any)
- class hap.types.agents.AgentExecutionResult(/, **data: Any)ΒΆ
Bases:
pydantic.BaseModelResult from agent execution.
- Parameters:
data (Any)
- status: Literal['success', 'error', 'interrupted'] = NoneΒΆ
- class hap.types.agents.AgentInfo(/, **data: Any)ΒΆ
Bases:
haive.hap.types.BaseInfoInformation about a Haive agent exposed through HAP.
Agents are workflow + engine combinations that provide intelligent behavior through LLMs or other AI models.
- Parameters:
data (Any)
- class hap.types.agents.AgentReasoningStep(/, **data: Any)ΒΆ
Bases:
pydantic.BaseModelA step in agent reasoning (for agents that support it).
- Parameters:
data (Any)
- class hap.types.agents.AgentStateSnapshot(/, **data: Any)ΒΆ
Bases:
pydantic.BaseModelSnapshot of agent state at a point in time.
- Parameters:
data (Any)
- class hap.types.agents.AgentStatistics(/, **data: Any)ΒΆ
Bases:
pydantic.BaseModelStatistics about agent usage.
- Parameters:
data (Any)
- class hap.types.agents.AgentToolCall(/, **data: Any)ΒΆ
Bases:
pydantic.BaseModelInformation about a tool call made by an agent.
- Parameters:
data (Any)
- class hap.types.agents.MultiAgentInfo(/, **data: Any)ΒΆ
Bases:
AgentInfoInformation about multi-agent systems.
- Parameters:
data (Any)
- agent_type: Literal['MultiAgent'] = 'MultiAgent'ΒΆ
- coordination_mode: Literal['sequential', 'parallel', 'hierarchical', 'collaborative'] = NoneΒΆ
- class hap.types.agents.RAGAgentInfo(/, **data: Any)ΒΆ
Bases:
AgentInfoInformation specific to RAG agents.
- Parameters:
data (Any)
- agent_type: Literal['RAGAgent'] = 'RAGAgent'ΒΆ