Documentation
¶
Overview ¶
Package agent provides agent memory and reporting tools for ZAP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoTestParams ¶
type AutoTestTool ¶
type AutoTestTool struct {
// contains filtered or unexported fields
}
AutoTestTool orchestrates the full autonomous testing workflow: analyze endpoint → generate test scenarios via LLM → run all tests → diagnose failures.
func NewAutoTestTool ¶
func NewAutoTestTool( llmClient llm.LLMClient, a *debugging.AnalyzeEndpointTool, o *RunTestsTool, e *shared.TestExecutor, f *debugging.AnalyzeFailureTool, ) *AutoTestTool
func (*AutoTestTool) Description ¶
func (t *AutoTestTool) Description() string
func (*AutoTestTool) Name ¶
func (t *AutoTestTool) Name() string
func (*AutoTestTool) Parameters ¶
func (t *AutoTestTool) Parameters() string
type MemoryParams ¶
type MemoryParams struct {
Action string `json:"action"` // "save", "recall", "forget", "list", "update_knowledge"
Key string `json:"key,omitempty"` // Key for save/forget
Value string `json:"value,omitempty"` // Value for save
Category string `json:"category,omitempty"` // Category for save/list: "preference", "endpoint", "error", "project", "general"
Query string `json:"query,omitempty"` // Search query for recall
Section string `json:"section,omitempty"` // Section name for update_knowledge
Content string `json:"content,omitempty"` // Markdown content for update_knowledge
}
MemoryParams defines memory tool operations.
type MemoryTool ¶
type MemoryTool struct {
// contains filtered or unexported fields
}
MemoryTool provides persistent memory operations for the agent.
func NewMemoryTool ¶
func NewMemoryTool(store *core.MemoryStore) *MemoryTool
NewMemoryTool creates a new memory tool.
func (*MemoryTool) Description ¶
func (t *MemoryTool) Description() string
Description returns the tool description.
func (*MemoryTool) Execute ¶
func (t *MemoryTool) Execute(args string) (string, error)
Execute performs memory operations.
func (*MemoryTool) Parameters ¶
func (t *MemoryTool) Parameters() string
Parameters returns the tool parameter description.
type RunTestsParams ¶
type RunTestsParams struct {
Scenarios []shared.TestScenario `json:"scenarios"`
BaseURL string `json:"base_url"`
Category string `json:"category,omitempty"`
Categories []string `json:"categories,omitempty"`
Concurrency int `json:"concurrency,omitempty"`
TimeoutMs int `json:"timeout_ms,omitempty"`
ReportName string `json:"report_name,omitempty"` // e.g. "test_report_users_api"
}
RunTestsParams defines input for run_tests
type RunTestsTool ¶
type RunTestsTool struct {
// contains filtered or unexported fields
}
RunTestsTool executes multiple test scenarios
func NewRunTestsTool ¶
func NewRunTestsTool(falconDir string, testExecutor *shared.TestExecutor, reportWriter *shared.ReportWriter) *RunTestsTool
NewRunTestsTool creates a new run_tests tool
func (*RunTestsTool) Description ¶
func (t *RunTestsTool) Description() string
func (*RunTestsTool) Name ¶
func (t *RunTestsTool) Name() string
func (*RunTestsTool) Parameters ¶
func (t *RunTestsTool) Parameters() string