Agent : get_session
Agent_GetSession.RdGets an existing agent session. Adds the session to the Agent's sessions named list and sets it as the current session.
Examples
if (FALSE) { # \dontrun{
## Get an existing session and send a prompt.
# Retrieve an existing session by providing the session ID and calling synGetSession().
# Then, send a prompt to the agent.
library(synapser)
synLogin()
my_session = Agent() |> synGetSession(session_id = "foo")
my_session |> synPrompt(
prompt = "Hello",
enable_trace = TRUE,
print_response = TRUE
)
} # }