vtcode_core/core/agent/
examples.rs

1//! Example agent implementations and usage patterns
2
3/// Example agent configurations and usage patterns
4pub struct AgentExamples;
5
6/// Basic agent usage example
7impl AgentExamples {
8    /// Create a simple agent example
9    pub fn basic_example() -> &'static str {
10        r#"
11# Basic VTCode Usage Example
12
13This example shows how to use VTCode for code analysis and tool execution.
14
15## Available Tools:
16- simple_search: File search and operations
17- bash: Bash-like commands with PTY support
18- run_terminal_cmd: Terminal command execution
19
20## Example Workflow:
211. Use simple_search for file operations
222. Use bash for system operations
233. Use run_terminal_cmd for complex terminal tasks
24"#
25    }
26
27    /// Advanced agent usage example
28    pub fn advanced_example() -> &'static str {
29        r#"
30# Advanced VTCode Usage
31
32## Tool Integration:
33- All tools now support PTY for terminal emulation
34- AST-based code analysis and transformation
35"#
36    }
37}