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

Tool Execution - Ability to provide tools and the enhanced function will able to run the tools iteratively to achieve a task #3

Open
chandralegend opened this issue Nov 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@chandralegend
Copy link
Collaborator

llm = OpenAI()

def wikipedia_search(query: str) -> str:
    # wikipedia calling logic

@llm.agent("Answer the Question", tools=[wikipedia_search])
def answer(question: str) -> Semantic[str, "answer to the question"]: ...

This will run a Thought Action Observation (ReAct) Process until we reach the answer or max_steps are achieved.

@chandralegend chandralegend added the enhancement New feature or request label Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant