Skip to content

Add ToolCall struct and extend ToolExecutor trait #241

@bug-ops

Description

@bug-ops

Parent: #239 (Phase A)

Summary

Add structured ToolCall type and extend ToolExecutor with tool_definitions() and execute_tool_call() methods.

Changes

  • crates/zeph-tools/src/executor.rs: add ToolCall { tool_id, params } struct
  • Extend ToolExecutor trait with fn tool_definitions(&self) -> &[ToolDef] and fn execute_tool_call(&self, call: &ToolCall) -> Result<Option<ToolOutput>, ToolError>
  • Keep existing execute(&self, response: &str) for backward compat (dual-mode)

Acceptance criteria

  • ToolCall struct with serde support
  • ToolExecutor trait backward-compatible extension
  • Existing bash extraction path unchanged

Metadata

Metadata

Assignees

No one assigned

    Labels

    M18M18: Tool Orchestration EvolutionfeatureNew functionalitytoolsTool execution and MCP integration

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions