mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 22:01:41 +00:00
Minor README update
This commit is contained in:
parent
a65a313a9a
commit
46d4b586e7
1 changed files with 5 additions and 5 deletions
|
|
@ -126,16 +126,16 @@ const chatPanel = new ChatPanel();
|
||||||
await chatPanel.setAgent(agent, {
|
await chatPanel.setAgent(agent, {
|
||||||
// Prompt for API key when needed
|
// Prompt for API key when needed
|
||||||
onApiKeyRequired: async (provider) => ApiKeyPromptDialog.prompt(provider),
|
onApiKeyRequired: async (provider) => ApiKeyPromptDialog.prompt(provider),
|
||||||
|
|
||||||
// Hook before sending messages
|
// Hook before sending messages
|
||||||
onBeforeSend: async () => { /* save draft, etc. */ },
|
onBeforeSend: async () => { /* save draft, etc. */ },
|
||||||
|
|
||||||
// Handle cost display click
|
// Handle cost display click
|
||||||
onCostClick: () => { /* show cost breakdown */ },
|
onCostClick: () => { /* show cost breakdown */ },
|
||||||
|
|
||||||
// Custom sandbox URL for browser extensions
|
// Custom sandbox URL for browser extensions
|
||||||
sandboxUrlProvider: () => chrome.runtime.getURL('sandbox.html'),
|
sandboxUrlProvider: () => chrome.runtime.getURL('sandbox.html'),
|
||||||
|
|
||||||
// Add custom tools
|
// Add custom tools
|
||||||
toolsFactory: (agent, agentInterface, artifactsPanel, runtimeProvidersFactory) => {
|
toolsFactory: (agent, agentInterface, artifactsPanel, runtimeProvidersFactory) => {
|
||||||
const replTool = createJavaScriptReplTool();
|
const replTool = createJavaScriptReplTool();
|
||||||
|
|
@ -590,7 +590,7 @@ console.log(i18n('Loading...')); // "Laden..."
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
- [example/](./example) - Complete web app with sessions, artifacts, custom messages
|
- [example/](./example) - Complete web app with sessions, artifacts, custom messages
|
||||||
- [sitegeist](https://github.com/badlogic/sitegeist) - Browser extension using pi-web-ui
|
- [sitegeist](https://sitegeist.ai) - Browser extension using pi-web-ui
|
||||||
|
|
||||||
## Known Issues
|
## Known Issues
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue