Expand description
General-purpose AgentBuilder factory — provides default configuration shared across consumers.
Returns a pre-configured agent_works::AgentBuilder; callers then register
tools and approval handlers on top.
Functions§
- base_
agent_ builder - Returns an
agent_works::AgentBuilderwith sensible defaults: - base_
agent_ builder_ no_ compression - Like
base_agent_builder_with_options, but skips registering the compression middleware entirely. Use when a custom context compactor (e.g. token-budget window rotation) replaces LLM-based summarization. - base_
agent_ builder_ with_ excludes - Like
base_agent_builder, but lets the consumer inject a list of entry names forphi_kernel_tools::file::ListFilesToolto skip (e.g. a coding agent passing["target", "node_modules"]). The framework stays domain-agnostic: it defaults to no excludes; the consumer decides what counts as noise. - base_
agent_ builder_ with_ options - Like
base_agent_builder_with_excludes, but also lets the consumer override theCompressionConfigused by the context-compression middleware. PassNoneto use the defaults. - clear_
compression_ cache - Clear the compression summary cache.
- run_
compact_ session - Run
compact_sessionon the current session: read → compress → write back.