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