Add method for running agent server side autonomously#64
Open
Add method for running agent server side autonomously#64
Conversation
bh2smith
reviewed
Sep 16, 2025
packages/agent-sdk/src/autonomous.ts
Outdated
| @@ -0,0 +1,127 @@ | |||
| import { BitteToolResult } from "@bitte-ai/types"; | |||
|
|
|||
| const BITTE_API_URL = "https://ai-runtime-446257178793.europe-west1.run.app"; | |||
Contributor
There was a problem hiding this comment.
This is a public NPM package. Do we want this fixed URL to be here?
| agentId: string; | ||
| } | ||
|
|
||
| export interface ChatMessage { |
Contributor
There was a problem hiding this comment.
Many of these types look like they belong or already exist in @bitte-ai/types.
| const prefix = line.substring(0, 2); | ||
| const data = line.substring(2); | ||
|
|
||
| switch (prefix) { |
Contributor
There was a problem hiding this comment.
What are these prefixes supposed to mean?
Contributor
|
I see we are depending on this old PR in https://github.com/BitteProtocol/auto-trader/blob/3098e577ecca7e629d953cf74a4f0c0b5145b7db/package.json#L15 Can we try and get it merged/released. |
bh2smith
reviewed
Oct 16, 2025
packages/agent-sdk/src/autonomous.ts
Outdated
Comment on lines
41
to
51
| export async function callAgent<T = Record<string, unknown>>( | ||
| accountId: string, | ||
| message: string, | ||
| agentId: string, | ||
| evmAddress: string = "", | ||
| suiAddress: string = "", | ||
| solanaAddress: string = "", | ||
| ): Promise<AgentResponse<T>> { | ||
| const chatId = `chat_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`; |
Contributor
There was a problem hiding this comment.
Here is were we want to pass system Prompt Override.
5672345 to
c648e16
Compare
20587e8 to
f3486c5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.