Skip to content

Commit

Permalink
refactor: update SAML configuration to use 'browser tool' instead of …
Browse files Browse the repository at this point in the history
…'browser' in workflow prompts
  • Loading branch information
elisalimli committed Apr 22, 2024
1 parent 13d26c9 commit 430dddb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libs/superagent/app/api/workflow_configs/saml_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class Workflow(BaseModel):
bedrock: Optional[LLMAgent]
groq: Optional[LLMAgent]
mistral: Optional[LLMAgent]
cohere_chat: Optional[LLMAgent] = Field(alias="cohere")
cohere_chat: Optional[LLMAgent]
anthropic: Optional[LLMAgent]
llm: Optional[LLMAgent] = Field(
description="Deprecated! Use LLM providers instead. e.g. `perplexity` or `together_ai`"
Expand Down
4 changes: 2 additions & 2 deletions libs/superagent/app/models/tools.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Optional

from pydantic import BaseModel
from pydantic import BaseModel, Field


class AlgoliaInput(BaseModel):
Expand Down Expand Up @@ -61,7 +61,7 @@ class E2BCodeExecutorInput(BaseModel):


class BrowserInput(BaseModel):
url: str
url: str = Field(..., description="A valid url including protocol to analyze")


class GPTVisionInputModel(BaseModel):
Expand Down
4 changes: 2 additions & 2 deletions libs/ui/config/saml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ workflows:
name: Browser assistant
intro: |-
👋 Hi there! How can I help search for answers on the internet.
prompt: Use the browser to answer any questions
prompt: Use the browser tool to answer any questions
tools:
- browser:
name: browser
Expand All @@ -22,7 +22,7 @@ workflows:
- superagent:
name: Browser assistant
llm: gpt-3.5-turbo-16k-0613
prompt: Use the browser to answer all questions
prompt: Use the browser tool to answer all questions
intro: 👋 Hi there! How can I help you?
tools:
- browser:
Expand Down

0 comments on commit 430dddb

Please sign in to comment.