Agent

Properties

Name

Type

Description

Notes

id

str

Agent ID (UUID for custom agents, string like "general-agent" for built-in)

[optional]

value

str

Agent identifier (agent_type for built-in, agent_name for custom)

[optional]

label

str

Display name for the agent

[optional]

enabled

bool

Whether the agent is enabled (true if all required keys are associated)

[optional]

type

str

Agent type

[optional]

owner

str

Owner email (null for built-in agents)

[optional]

description

str

Agent description

[optional]

api_keys

AgentApiKeys

[optional]

mcp_servers

List[CustomAgentDetailMcpServersInner]

MCP server associations (only for custom agents)

[optional]

Example

from h2ogpte.rest_async.models.agent import Agent

# TODO update the JSON string below
json = "{}"
# create an instance of Agent from a JSON string
agent_instance = Agent.from_json(json)
# print the JSON string representation of the object
print(Agent.to_json())

# convert the object into a dict
agent_dict = agent_instance.to_dict()
# create an instance of Agent from a dict
agent_from_dict = Agent.from_dict(agent_dict)