Duibonduil's picture
Upload 2 files
6ddac53 verified

A newer version of the Gradio SDK is available: 5.42.0

Upgrade

Apps

Each subdirectory contains an example provided by us. If you haven't set the LLM parameters as environment variables, please configure the AgentConfig before running.

AgentConfig Parameters

When constructing the AgentConfig, you can set the parameters as follows:

  • llm_provider: str
    (Currently supports only "openai")
  • llm_model_name: str
    (Default: "gpt-4o")
  • llm_temperature: float
    (Default: 1.0)
  • llm_base_url: str (Required)
    (e.g., for OpenAI's official service, set to https://api.openai.com/v1/)
  • llm_api_key: str (Required)
    (Fill in with your API key)

Writing an Agent and Tool