Skip to content

How do I customize the prompt for the zero shot agent ? #4044

@jiyer2016

Description

@jiyer2016

I create an agent using:

zero_shot_agent = initialize_agent(
    agent="zero-shot-react-description",
    tools=tools,
    llm=llm,
    verbose=True,
    max_iterations=3
)

I now want to customize the content of the default prompt used by the agent.
I wasn't able to locate any documented input parameters to initialize_agent() to do so.
Is there a way to accomplish this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions