synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
113 lines (106 loc) • 4.01 kB
JavaScript
import { AgentAccessLevel as t } from "@sage-bionetworks/synapse-types";
const e = "session-456", o = {
agentAccessLevel: t.READ_YOUR_PRIVATE_DATA,
agentRegistrationId: "experimental-agent-123"
}, s = {
sessionId: e,
agentAccessLevel: t.PUBLICLY_ACCESSIBLE,
startedOn: "2024-09-01T12:00:00Z",
agentRegistrationId: "default-agent"
}, n = {
sessionId: "session-789",
agentAccessLevel: t.WRITE_YOUR_PRIVATE_DATA,
startedOn: "2024-09-01T12:00:00Z",
agentRegistrationId: "default-agent"
}, i = {
nextPageToken: "token-789"
}, c = {
page: [s, n],
nextPageToken: "token-790"
}, d = {
sessionId: e,
chatText: "Hello! How can I access My Projects?",
enableTrace: !0
}, r = {
sessionId: e,
responseText: `This is the only response this agent is told to respond with.
<function_results>
<result>
<tool_name><REDACTED>_get_description</tool_name>
<stdout> **Adapt**: You can remix, transform, and build upon the material **Attribution:** You must acknowledge the Data Contributor using the acknowledgment statement below: **Non-Commercial**: You may not use the material for commercial purposes.
The TOPACIO study was a phase 2 clinical trial of the investigational drug OPB-51602 in patients with advanced solid tumors. The study was sponsored by Oncopia Therapeutics, Inc. and conducted at multiple sites in the United States between 2013 and 2015.
This dataset contains de-identified clinical data, biomarker data, and pharmacokinetic/pharmacodynamic (PK/PD) data from the TOPACIO study. Specific data files include:
- Demographics and baseline characteristics
- Adverse events
- Tumor response data
- Pharmacokinetic data
- Pharmacodynamic biomarker data
The data has been de-identified in accordance with HIPAA regulations. Please see the study protocol and data dictionary files for more details on the collected data and definitions.
**Acknowledgment Statement**: The TOPACIO study data was contributed by Oncopia Therapeutics, Inc. Please use the following text to acknowledge the source of the data: "The results published here are in part based upon data generated by the TOPACIO clinical trial, provided by Oncopia Therapeutics, Inc."
</stdout>
</result>
`
}, m = {
sessionId: e,
page: [
{
usersRequestText: "What is the weather like today?",
usersRequestTimestamp: "2024-09-06T14:30:00Z",
agentResponseText: "The weather is sunny with a high of 75°F.",
agentResponseTimestamp: "2024-09-06T14:30:10Z"
},
{
usersRequestText: "Can you tell me a joke?",
usersRequestTimestamp: "2024-09-06T14:32:00Z",
agentResponseText: "Why don’t scientists trust atoms? Because they make up everything!",
agentResponseTimestamp: "2024-09-06T14:32:05Z"
}
],
nextPageToken: void 0
}, h = {
jobId: ":id",
page: [
{
timestamp: 1695567600,
// Example timestamp (in seconds)
message: "Executing search on Synapse"
}
]
}, p = {
jobId: ":id",
page: [
{
timestamp: 1695567700,
// Example timestamp (in seconds)
message: "Gathering entity metadata"
}
]
}, u = {
jobId: ":id",
page: [
{
timestamp: 1695567800,
// Example timestamp (in seconds)
message: '<thinking>The metadata shows that the entity with ID syn9602623 is a Synapse project named "SearchIntegrationTest.Projecte475c6e8-414a-4842-b876-bf8232ce05d0". Its description contains the search term "e7b33c3a-2392-4ce7-a357-efa4612e4a41". The metadata ...'
}
]
}, l = {
jobId: ":id",
page: []
};
export {
d as mockAgentChatRequest,
r as mockAgentChatResponse,
s as mockAgentSession,
n as mockAgentSession2,
e as mockChatSessionId,
o as mockCreateAgentSessionRequest,
l as mockEmptyTraceEventsResponse,
i as mockListAgentSessionsRequest,
c as mockListAgentSessionsResponse,
m as mockSessionHistoryResponse,
h as mockTraceEventsResponse1,
p as mockTraceEventsResponse2,
u as mockTraceEventsResponse3
};
//# sourceMappingURL=mockChat.js.map