Skip to content

Commit

Permalink
Add chat with code (#1130)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT authored Mar 6, 2024
1 parent 526e4e3 commit 6734f08
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
35 changes: 35 additions & 0 deletions agixt/chains/Chat with Code.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
]
}
15 changes: 15 additions & 0 deletions agixt/prompts/Default/Chat with Code.txt
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit 6734f08

Please sign in to comment.