Skip to content

Types

Type Definitions for GLLM Agents.

This module defines common type hints and protocols used throughout the GLLM Agents package.

Authors

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

References

https://github.com/GDP-ADMIN/gdplabs-exploration/blob/ai-agent-app/backend/gllm_agents/types.py

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.