agent (agents v0.2.0)

View Source

Summary

Functions

agent_process(Parent, SessionId, Prompt, ToolNames, Options)

chat(Pid, Message)

define_tool(Name, Schema)

ensure_anthropic_client()

ensure_api_client(ApiGroup)

execute_tool(Name, ExecutionFn, Options)

get_info(Pid)

init(_)

list_available_endpoints()

process_task(Pid, Task)

run_agent(Prompt, ToolNames)

run_agent(Prompt, ToolNames, Options)

run_agent_with_context(Prompt, Context, ToolNames)

run_agent_with_context(Prompt, Context, ToolNames, Options)

run_agent_with_mcp(Prompt, AgentId, ToolNames)

run_agent_with_mcp(Prompt, AgentId, ToolNames, Options)

start()

start(StartType, StartArgs)

start_link()

start_link(Options)

start_link(AgentId, Options)

stop()

stop(State)

stop_agent(Pid)

stream_chat(Pid, Message)

subscribe(Pid, SubscriberPid)

tool_executor(Parent, SessionId, ToolId, ToolName, Arguments)