Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chat with code #1130

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}
Loading