Agent : register
Agent_Register.RdRegisters an agent with the Synapse API. If agent already exists, it will be retrieved.
Examples
if (FALSE) { # \dontrun{
## Register and chat with a custom agent
# Only available for internal users (Sage Bionetworks employees).
#
# Alternatively, you can register a custom agent and chat with it provided
# you have already created it.
library(synapser)
synLogin()
my_agent = Agent(cloud_agent_id = "foo") |> synRegister()
my_agent |> synPrompt(
prompt = "Hello",
enable_trace = TRUE,
print_response = TRUE
)
} # }