Module agent

Module agent 

Source
Expand description

Agent module for interactive AI-powered CLI assistance

This module provides an agent layer using the Rig library that allows users to interact with the CLI through natural language conversations.

§Usage

# Interactive mode
sync-ctl chat

# With specific provider
sync-ctl chat --provider openai --model gpt-4o

# Single query
sync-ctl chat -q "What security issues does this project have?"

Modules§

config
Agent configuration and credentials management
tools
Agent tools using Rig’s Tool trait
ui
Beautiful terminal UI for the agent

Enums§

AgentError
Error types for the agent
ProviderType
Provider type for the agent

Functions§

run_interactive
Run the agent in interactive mode with beautiful UI
run_query
Run a single query and return the response

Type Aliases§

AgentResult