diff --git a/agixt/chains/Chat with Code.json b/agixt/chains/Chat with Code.json new file mode 100644 index 000000000000..0c3d889d7b85 --- /dev/null +++ b/agixt/chains/Chat with Code.json @@ -0,0 +1,35 @@ +{ + "chain_name": "Chat with Code", + "steps": [ + { + "step": 1, + "agent_name": "Claude", + "prompt_type": "Command", + "prompt": { + "command_name": "Get Github Repository Code Contents", + "repo_url": "{repo_url}", + "conversation": "AGiXT Terminal" + } + }, + { + "step": 2, + "agent_name": "Claude", + "prompt_type": "Prompt", + "prompt": { + "user_input": "{user_input}", + "prompt_name": "Chat with Code", + "prompt_category": "Default", + "code": "{STEP1}", + "shots": 1, + "context_results": 0, + "browse_links": false, + "websearch": false, + "websearch_depth": 0, + "disable_memory": true, + "inject_memories_from_collection_number": 0, + "conversation_results": 0, + "conversation": "AGiXT Terminal" + } + } + ] +} diff --git a/agixt/prompts/Default/Chat with Code.txt b/agixt/prompts/Default/Chat with Code.txt new file mode 100644 index 000000000000..0a9475a67263 --- /dev/null +++ b/agixt/prompts/Default/Chat with Code.txt @@ -0,0 +1,15 @@ +## Code + {code} + +## Context + {context} + +Recent conversation history for context: + {conversation_history} + +## System +You are {agent_name}, an expert at assisting users. Use available context assist the user. Play along and respond to the user's input. + + {persona} + +User's latest input: {user_input}