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

feat: add coinbase plugin starting with cb commerce functionality #513

Merged
merged 38 commits into from
Nov 22, 2024
Merged
Changes from 2 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
f60c536
Implement Coinbase Commerce Provider
monilpat Nov 20, 2024
eed9bce
add plugin to readme
monilpat Nov 21, 2024
e98b8a5
Testing Coinbase Plugin
monilpat Nov 21, 2024
8f975ab
test: add linter to all packages and enable vitest
snobbee Nov 21, 2024
6d65551
Build plugin
monilpat Nov 22, 2024
90f5676
wrap in try to allow non node env to build
antpb Nov 22, 2024
73a4bfd
consistent error
antpb Nov 22, 2024
a0c2bb8
fix other eliza error
antpb Nov 22, 2024
b856146
docs: add template and client configuration guide
oguzserdar Nov 22, 2024
26fab78
Integrate coinbase plugin and test and get it working
monilpat Nov 22, 2024
d33edac
Remove unnecessary console.logs
monilpat Nov 22, 2024
f2dde70
Merge pull request #510 from oguzserdar/main
jkbrooks Nov 22, 2024
10aa5d6
Merge pull request #508 from antpb/fix/gracefully-pull-node-dep
jkbrooks Nov 22, 2024
b763a62
add precommit
ponderingdemocritus Nov 22, 2024
421fe0b
husky
ponderingdemocritus Nov 22, 2024
9e9836b
prettier
ponderingdemocritus Nov 22, 2024
37f1c33
feat: husky
ponderingdemocritus Nov 22, 2024
bb643af
feat: commit
ponderingdemocritus Nov 22, 2024
de3f5af
feat: style
ponderingdemocritus Nov 22, 2024
c5177f6
fix: ecogarden type
ponderingdemocritus Nov 22, 2024
02b5145
Merge pull request #514 from ai16z/feat/pre-commit
ponderingdemocritus Nov 22, 2024
8d32603
fix: lint
ponderingdemocritus Nov 22, 2024
e31e666
Merge pull request #515 from ai16z/fix/trim
ponderingdemocritus Nov 22, 2024
83ec1de
Merge branch 'main' into test/add-linter-to-all-packages
snobbee Nov 22, 2024
2335a92
Create SECURITY.md
awidearray Nov 22, 2024
62ef92a
fix: typo
snobbee Nov 22, 2024
79bdabb
test: fix linter errors and add linter to pre-commit hook
snobbee Nov 22, 2024
502d386
fix: lint
snobbee Nov 22, 2024
cf06999
ci: add linter to ci workflow
snobbee Nov 22, 2024
6e05c0f
Merge pull request #490 from snobbee/test/add-linter-to-all-packages
ponderingdemocritus Nov 22, 2024
8e5658a
Implement Coinbase Commerce Provider
monilpat Nov 20, 2024
0b4e85d
add plugin to readme
monilpat Nov 21, 2024
60bdca3
Testing Coinbase Plugin
monilpat Nov 21, 2024
e96e0cc
Build plugin
monilpat Nov 22, 2024
7ef4502
Integrate coinbase plugin and test and get it working
monilpat Nov 22, 2024
4d383c2
Remove unnecessary console.logs
monilpat Nov 22, 2024
932ba8b
chore: merge conflicts
monilpat Nov 22, 2024
d4835c5
Update package.json
monilpat Nov 22, 2024
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
88 changes: 88 additions & 0 deletions docs/docs/guides/template-configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# 🔧 Template and Client Configuration

This guide covers how to configure custom templates and client behaviors for your AI agent. We'll walk through all available template options and configuration settings.

## Template Configuration

### Overview

You can customize your character's behavior by overriding default prompt templates in your character's JSON file. ai16z/eliza provides default prompts for standard behaviors, making all template fields optional.

### Available Template Options

Here are all the template options you can configure:

```json
{
"templates": {
"goalsTemplate": "", // Define character goals
"factsTemplate": "", // Specify character knowledge
"messageHandlerTemplate": "", // Handle general messages
"shouldRespondTemplate": "", // Control response triggers
"continueMessageHandlerTemplate": "", // Manage conversation flow
"evaluationTemplate": "", // Handle response evaluation
"twitterSearchTemplate": "", // Process Twitter searches
"twitterPostTemplate": "", // Format Twitter posts
"twitterMessageHandlerTemplate": "", // Handle Twitter messages
"twitterShouldRespondTemplate": "", // Control Twitter responses
"telegramMessageHandlerTemplate": "", // Handle Telegram messages
"telegramShouldRespondTemplate": "", // Control Telegram responses
"discordVoiceHandlerTemplate": "", // Manage Discord voice
"discordShouldRespondTemplate": "", // Control Discord responses
"discordMessageHandlerTemplate": "" // Handle Discord messages
}
}
```

### Example Usage

```json
{
"templates": {
"discordMessageHandlerTemplate": "",
"discordShouldRespondTemplate": "",
"telegramShouldRespondTemplate": "",
"twitterPostTemplate": ""
}
}
```

## Client Configuration

### Overview

Configure platform-specific behaviors for your character, such as handling direct messages and bot interactions.

### Available Options

```json
{
"clientConfig": {
"telegram": {
"shouldIgnoreDirectMessages": true, // Ignore DMs
"shouldIgnoreBotMessages": true // Ignore bot messages
},
"discord": {
"shouldIgnoreBotMessages": true, // Ignore bot messages
"shouldIgnoreDirectMessages": true // Ignore DMs
}
}
}
```

## Best Practices

1. **Template Management**
- Keep templates focused and specific
- Use clear, consistent formatting
- Document custom template behavior

2. **Client Configuration**
- Configure per platform as needed
- Test behavior in development
- Monitor interaction patterns

3. **Performance Considerations**
- Keep templates concise
- Avoid redundant configurations
- Test with expected message volumes