AgentSession : start
AgentSession_Start.RdStarts an agent session.
Examples
if (FALSE) { # \dontrun{
## Start a session and send a prompt.
# Start a session with a custom agent by providing the agent's registration ID
# and calling synStart(). Then, send a prompt to the agent.
library(synapser)
synLogin()
my_session = AgentSession(agent_registration_id = "foo") |> synStart()
my_session |> synPrompt(
prompt = "Hello",
enable_trace = TRUE,
print_response = TRUE
)
} # }