View Source GptAgent.Impl (gpt_agent v2.1.0)
Provides the implementation of the GptAgent public API
Summary
Functions
Adds a user message
Connects to the GPT Agent
Connects to the GPT Agent and sets the default assistant
Creates a new thread
Returns the default assistant
Sets the default assistant
Starts the GPT Agent
Submits tool output
Returns the thread ID
Functions
Adds a user message
Connects to the GPT Agent
Connects to the GPT Agent and sets the default assistant
@spec create_thread() :: {:ok, binary()}
Creates a new thread
Returns the default assistant
Sets the default assistant
Starts the GPT Agent
@spec submit_tool_output(pid(), binary(), map()) :: {:ok, binary()} | {:error, :invalid_tool_call_id}
Submits tool output
Returns the thread ID