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

Added LLM Tools to Tool #834

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Added LLM Tools to Tool #834

wants to merge 1 commit into from

Conversation

acedward
Copy link
Contributor

Example

## Run Tool LLM
curl -X "POST" "http://localhost:9950/v2/tool_execution" \
     -H 'Authorization: Bearer debug' \
     -H 'x-shinkai-tool-id: tool-id' \
     -H 'x-shinkai-app-id: app-id' \
     -H 'x-shinkai-llm-provider: o_qwen2_5_coder_latest' \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
  "tool_router_key": "local:::__official_shinkai:::shinkai_llm_prompt_processor",
  "llm_provider": "o_qwen2_5_coder_latest",
  "parameters": {
    "tools": [
      "google",
      "duckduckgo"
    ],
    "prompt": "Search and summarize data about Ponies"
  }
}'

Typescript Header

/**
 * Tool for processing any prompt using an AI LLM. 
Analyzing the input prompt and returning a string with the result of the prompt.
This can be used to process complex requests, text analysis, text matching, text generation, and any other AI LLM task.
 * @param input - {
 *   format: string - The format of the prompt
 *   prompt: string - The prompt to process
 *   tools?: string[] - List of tools names or tool router keys to be used with the prompt
 *
 * @returns {
 *   message: string;
 * }
 */
export async function shinkaiLlmPromptProcessor(input: {format: string, prompt: string, tools?: any[]}): Promise<{
    message: string;
}>;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant