Comments (1)
We already do support this.
Unfortunately, we do not support through SDK for now. But users can still use it.
Here's a Python code example:
import requests
from superagent.client import Superagent
BASE_URL = "https://api.beta.superagent.sh"
API_KEY=""
client = Superagent(
token=API_KEY,
base_url=BASE_URL # or your local environment
)
workflow = client.workflow.create(
request={
"name": "Bantu Cosmology",
"description": "Use the African Cosmology to answer any questions",
}
)
SAML = """
workflows:
- superagent:
llm: gpt-4-turbo-preview
name: Browser assistant
intro: Hi there! How can I help search for answers on the internet.
prompt: Use the African Cosmology to answer any questions
superrag:
- index:
name: Bantu Cosmology
urls:
- https://humana-2.s3.amazonaws.com/African+Cosmology+Bantu+Kongo.pdf
use_for: Answering questions about African Cosmology
interpreter_mode: false
database_provider: qdrant
"""
requests.post(
f"{BASE_URL}/api/v1/workflows/{workflow.data.id}/config",
headers={
"Content-Type": "application/x-yaml",
"Authorization": f"Bearer {API_KEY}",
},
data=SAML,
).json()
from superagent.
Related Issues (20)
- SAML - Output Schema HOT 1
- Add `output_schema`Β to SAML.
- Workflow invoke `outputSchema` should return json and take president over the output schema in SAML HOT 1
- Output parser fails sometimes when output_schema is set. HOT 2
- When request size is relatively big track_agent_invocation throws error.
- `outputSchema` doesn't work for anthropic SAML node
- Adoption from Midori AI for easier local deployment
- Add tool for fetching SEC filing.
- Add support for disconnecting a vector db HOT 1
- Add support for AWS Bedrock
- Add function calling support for models that support it.
- Installation Error - supabase: not found HOT 2
- Updating LLM in Superagent UI doesn't work properly HOT 2
- Onetime password never sent for first time login HOT 3
- [brainstorming] Adding image generation models as a type of agent?? HOT 1
- Add memory to LLM Agents HOT 1
- Callback manager in LLM Agent
- NotFoundError: Model not in model_prices_and_context_window.json. You passed model=anthropic/claude-3-haiku-2024...
- Support for Gemini Ai models
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superagent.