Skip to content

Types

Type definitions for gllm_agents package.

This module exports type definitions used throughout the gllm_agents package for better type safety and code clarity.

Authors

Christian Trisno Sen Long Chen (christian.t.s.l.chen@gdplabs.id) Raymond Christopher (raymond.christopher@gdplabs.id)

A2AEvent

Bases: TypedDict

Structured event data used by the A2A connector.

A2AStreamEventType

Bases: Enum

Semantic event types for A2A agent-executor communication.

AgentProtocol

Bases: Protocol

Defines the expected interface for an agent.

arun(query, **kwargs) async

Asynchronous execution method.

run(query, **kwargs)

Synchronous execution method.

ChatMessage

Bases: BaseModel

Represents a single message in a chat conversation.

ToolCallInfo

Bases: TypedDict

Structured information for tool invocation events.

ToolResultInfo

Bases: TypedDict

Structured information for tool completion events.