Praxis AI
  • Start
    • 🎗️Introduction
    • 🧠Installation
  • Infrastructure
    • 🗞️Litepaper
    • 🖼️Framework Guide
    • ⚙️API Reference
  • Social Links
    • 🔗Links
Powered by GitBook
On this page
  • Agent
  • RunContext
  • Tool Decorator
Export as PDF
  1. Infrastructure

API Reference

Agent

The core class for creating AI agents.

pythonCopyAgent(
    model: str,
    system_prompt: str = None,
    deps_type: Type = None,
    result_type: Type = None,
    **kwargs
)

RunContext

Context object for tool execution.

pythonCopyRunContext[T](
    deps: T,
    **kwargs
)

Tool Decorator

Decorator for defining agent tools.

pythonCopy@agent.tool
async def tool_name(
    ctx: RunContext[DepsType],
    *args,
    **kwargs
) -> ResultType:
    ...
PreviousFramework GuideNextLinks

Last updated 4 months ago

⚙️