Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
This repository was archived by the owner on May 20, 2025. It is now read-only.

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

@chandralegend

Description

@chandralegend
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions