Directories
¶
| Path | Synopsis |
|---|---|
|
Example: admin_ui
|
Example: admin_ui |
|
Example: admin_ui_auth
|
Example: admin_ui_auth |
|
Example: admin_ui_full
|
Example: admin_ui_full |
|
basic
|
|
|
01_simple_chat
command
Package main demonstrates the basic usage of AgentPG.
|
Package main demonstrates the basic usage of AgentPG. |
|
02_shared_tools
command
Package main demonstrates the Client API with multiple agents sharing tools.
|
Package main demonstrates the Client API with multiple agents sharing tools. |
|
Package main demonstrates the CancelRun and RegenerateRun APIs.
|
Package main demonstrates the CancelRun and RegenerateRun APIs. |
|
context_compaction
|
|
|
01_auto_compaction
command
Package main demonstrates the Client API with auto compaction using per-client registration.
|
Package main demonstrates the Client API with auto compaction using per-client registration. |
|
02_manual_compaction
command
Package main demonstrates the per-client API with manual compaction.
|
Package main demonstrates the per-client API with manual compaction. |
|
03_custom_strategy
command
Package main demonstrates custom compaction strategies.
|
Package main demonstrates custom compaction strategies. |
|
04_compaction_monitoring
command
Package main demonstrates compaction monitoring using the Client API.
|
Package main demonstrates compaction monitoring using the Client API. |
|
custom_tools
|
|
|
01_struct_tool
command
Package main demonstrates the Client API with struct-based tools.
|
Package main demonstrates the Client API with struct-based tools. |
|
02_func_tool
command
Package main demonstrates the Client API with function-based tools.
|
Package main demonstrates the Client API with function-based tools. |
|
03_schema_validation
command
Package main demonstrates the Client API with advanced schema validation.
|
Package main demonstrates the Client API with advanced schema validation. |
|
04_parallel_execution
command
Package main demonstrates tool usage with AgentPG.
|
Package main demonstrates tool usage with AgentPG. |
|
Package main demonstrates using the Client API with database/sql driver.
|
Package main demonstrates using the Client API with database/sql driver. |
|
Package main demonstrates the Client API with distributed workers.
|
Package main demonstrates the Client API with distributed workers. |
|
Package main demonstrates the Client API with extended context support.
|
Package main demonstrates the Client API with extended context support. |
|
mcp_tools
|
|
|
01_everything_server
command
Package main demonstrates MCP tool integration using the Everything test server.
|
Package main demonstrates MCP tool integration using the Everything test server. |
|
02_filesystem_server
command
Package main demonstrates MCP tool integration with the Filesystem server.
|
Package main demonstrates MCP tool integration with the Filesystem server. |
|
03_github_server
command
Package main demonstrates MCP tool integration with the GitHub server.
|
Package main demonstrates MCP tool integration with the GitHub server. |
|
04_multi_server
command
Package main demonstrates combining multiple MCP servers with local tools.
|
Package main demonstrates combining multiple MCP servers with local tools. |
|
nested_agents
|
|
|
01_basic_delegation
command
Package main demonstrates the Client API with basic agent delegation.
|
Package main demonstrates the Client API with basic agent delegation. |
|
02_specialist_agents
command
Package main demonstrates the Client API with specialist agents.
|
Package main demonstrates the Client API with specialist agents. |
|
03_multi_level_hierarchy
command
Package main demonstrates the Client API with multi-level agent hierarchy.
|
Package main demonstrates the Client API with multi-level agent hierarchy. |
|
retry_rescue
|
|
|
01_instant_retry
command
Package main demonstrates the default instant retry behavior.
|
Package main demonstrates the default instant retry behavior. |
|
02_error_types
command
Package main demonstrates the different tool error types.
|
Package main demonstrates the different tool error types. |
|
03_exponential_backoff
command
Package main demonstrates opt-in exponential backoff for retries.
|
Package main demonstrates opt-in exponential backoff for retries. |
|
Package main demonstrates the tool call visibility features of AgentPG.
|
Package main demonstrates the tool call visibility features of AgentPG. |
Click to show internal directories.
Click to hide internal directories.