Skip to main content

Crate poe2_agent

Crate poe2_agent 

Source
Expand description

AI agent for Path of Exile 2 build analysis.

Provides an LLM-backed query agent that answers questions about Path of Building exports, plus supporting modules for PoB integration, wiki data, and game knowledge.

Re-exports§

pub use agent::AgentEvent;
pub use agent::ChatMessage;
pub use agent::ToolAgent;
pub use llm::ChatGptClient;
pub use llm::LlmError;
pub use llm::Usage;
pub use pob_parser::PobParseError;
pub use pob_parser::PobParser;
pub use pob_parser::PobQuery;
pub use query_agent::QueryAgent;
pub use trace::AgentTrace;
pub use trade::TradeClient;

Modules§

agent
ReAct-style tool-calling agent for build analysis.
knowledge
Pre-summarized PoE2 game knowledge for LLM context.
llm
OpenAI API client — Responses API for tool calling and streaming.
pob
Path of Building 2 headless integration.
pob_parser
Thread-safe PoB XML parser.
query_agent
Single-turn query agent: takes parsed build data + user question, streams an LLM response with the build as context.
tools
Trait-based tool dispatch for the agent.
trace
Agent reasoning trace — a structured record of everything that happens during a single respond() call.
trade
PoE2 Trade API client with rate limiting and stat resolution.
wiki
PoE2 Wiki scraper and cache.