-
Notifications
You must be signed in to change notification settings - Fork 2k
feat(rightbrain): added rightbrain block and rightbrain_run_task
tool
#363
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
Open
danishsjjd
wants to merge
20
commits into
simstudioai:main
Choose a base branch
from
RightbrainAI:feat/rightbrain
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
a7de436
feat(rightbrain): added rightbrain block/tools
danishsjjd 3b6ab50
fix: run_task tool request
danishsjjd 47f18b0
feat: validate task url
danishsjjd 43cca8b
fix: rightbrain category
danishsjjd ba03ff0
fix: run_task tool body
danishsjjd c2c1f51
fix: run_task tool description
danishsjjd f810f66
fix: run task block description
danishsjjd a4d04a0
feat: rightbrain integration docs
danishsjjd 1ce804d
fix: rightbrain docs
danishsjjd 6d02439
fix: rightbrain_run_task throw error if task run not successful
danishsjjd 5bd4cda
fix: rightbrain icon
danishsjjd 607aaec
chore: update rightbrain sdk package
danishsjjd c83f6c9
docs: get them production ready
pete001 cdce280
docs: fix json object attribute
pete001 181d6a8
revert discord docs
pete001 ded8a0e
fix: remove discord include
pete001 63b5486
Revert "fix: remove discord include"
pete001 d1de242
simplify docs
pete001 6b00b23
final update to docs.
pete001 c3ed3d3
docs: adds final rightbrain docs
pete001 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ | |
"perplexity", | ||
"pinecone", | ||
"reddit", | ||
"rightbrain", | ||
"s3", | ||
"serper", | ||
"slack", | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,66 @@ | ||||||
import { RightBrainIcon } from '@/components/icons' | ||||||
import { RightBrainRunTaskResponse } from '@/tools/rightbrain/types' | ||||||
import { BlockConfig } from '../types' | ||||||
|
||||||
export const RightBrainBlock: BlockConfig<RightBrainRunTaskResponse> = { | ||||||
type: 'rightbrain', | ||||||
name: 'Rightbrain', | ||||||
description: 'Run a Rightbrain AI task', | ||||||
longDescription: | ||||||
'Rightbrain lets you reliably deploy LLMs for specific tasks across any app or workflow by turning simple instructions into scalable APIs.', | ||||||
docsLink: 'https://docs.rightbrain.ai/intro', | ||||||
category: 'tools', | ||||||
bgColor: '#E0E0E0', | ||||||
icon: RightBrainIcon, | ||||||
subBlocks: [ | ||||||
{ | ||||||
id: 'url', | ||||||
title: 'Task URL', | ||||||
type: 'short-input', | ||||||
layout: 'full', | ||||||
placeholder: 'Rightbrain task URL', | ||||||
}, | ||||||
{ | ||||||
id: 'inputs', | ||||||
title: 'Task inputs', | ||||||
type: 'code', | ||||||
layout: 'full', | ||||||
placeholder: 'The task_input JSON object', | ||||||
}, | ||||||
{ | ||||||
id: 'apiKey', | ||||||
title: 'API Key', | ||||||
type: 'short-input', | ||||||
layout: 'full', | ||||||
placeholder: 'Your Rightbrain API key', | ||||||
password: true, | ||||||
}, | ||||||
], | ||||||
tools: { | ||||||
access: ['rightbrain_run_task'], | ||||||
}, | ||||||
inputs: { | ||||||
url: { type: 'string', required: true }, | ||||||
inputs: { type: 'json', required: true }, | ||||||
apiKey: { type: 'string', required: true }, | ||||||
}, | ||||||
outputs: { | ||||||
response: { | ||||||
type: { | ||||||
charged_credits: 'any', | ||||||
created: 'string', | ||||||
id: 'string', | ||||||
input_processor_timing: 'any', | ||||||
input_tokens: 'number', | ||||||
llm_call_timing: 'any', | ||||||
output_tokens: 'number', | ||||||
response: 'json', | ||||||
run_data: 'json', | ||||||
task_id: 'string', | ||||||
task_revision_id: 'string', | ||||||
total_tokens: 'number', | ||||||
is_error: 'any', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. style: is_error should be typed as boolean rather than 'any' for better type safety
Suggested change
|
||||||
}, | ||||||
}, | ||||||
}, | ||||||
} |
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: charged_credits type should be more specific than 'any' - based on the Rightbrain API docs this should be a number