vtcode_core/core/agent/
examples.rs1pub struct AgentExamples;
5
6impl AgentExamples {
8 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 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}