Skip to main content

Module issue_tool

Module issue_tool 

Source
Expand description

issue agent tool — agent-driven local issue management.

Implements oxi_agent::AgentTool against the FileIssueStore. One tool with an action discriminator (matches the pattern used by the github tool, see oxi-agent/src/tools/github.rs).

Actions: list, read, create, update, start, release, close, link_session. See AgentTool::parameters_schema for the exact JSON schema each action accepts.

Design notes:

  • The tool holds an Arc<FileIssueStore> so it can be cheaply cloned when the tool is registered in the live ToolRegistry (mirrors how McpTool/WasmTool hold their managers).
  • The “current session id” used for assignment / session-linking is taken from ToolContext.session_id. The agent loop fills this in from the active session.

Structs§

IssueTool
The issue tool. One registration, multiple actions.

Functions§

format_issue_full
Render a full issue view (summary line + meta + body). Used by both the agent tool and the CLI.
format_issue_line
Render an issue as a single summary line (id, status, priority, lock, title, labels, assignee). Used by both the agent tool and the CLI.