File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -826,8 +826,8 @@ async def prompt_async(
826
826
`Synapse.allow_client_caching(False)` this will use the last created
827
827
instance from the Synapse class constructor.
828
828
829
- Example: Prompt the baseline Synapse Agent to add annotations to a file on Synapse
830
- The baseline Synpase Agent can be used to add annotations to files .
829
+ Example: Prompt the baseline Synapse Agent.
830
+ The baseline Synapse Agent is equivilent to the Agent available in the Synapse UI .
831
831
832
832
import asyncio
833
833
from synapseclient import Synapse
@@ -838,11 +838,8 @@ async def prompt_async(
838
838
839
839
async def main():
840
840
my_agent = Agent()
841
- await my_agent.start_session_async(
842
- access_level=AgentSessionAccessLevel.WRITE_YOUR_PRIVATE_DATA
843
- )
844
841
await my_agent.prompt_async(
845
- prompt="Add the annotation 'test' to the file 'syn123456789' ",
842
+ prompt="Can you tell me about the AD Knowledge Portal dataset? ",
846
843
enable_trace=True,
847
844
print_response=True,
848
845
)
Original file line number Diff line number Diff line change @@ -328,21 +328,18 @@ def prompt(
328
328
`Synapse.allow_client_caching(False)` this will use the last created
329
329
instance from the Synapse class constructor.
330
330
331
- Example: Prompt the baseline Synapse Agent to add annotations to a file on Synapse
332
- The baseline Synpase Agent can be used to add annotations to files .
331
+ Example: Prompt the baseline Synapse Agent.
332
+ The baseline Synapse Agent is equivilent to the Agent available in the Synapse UI .
333
333
334
334
from synapseclient import Synapse
335
- from synapseclient.models import Agent, AgentSessionAccessLevel
335
+ from synapseclient.models import Agent
336
336
337
337
syn = Synapse()
338
338
syn.login()
339
339
340
340
my_agent = Agent()
341
- my_agent.start_session(
342
- access_level=AgentSessionAccessLevel.WRITE_YOUR_PRIVATE_DATA
343
- )
344
341
my_agent.prompt(
345
- prompt="Add the annotation 'test' to the file 'syn123456789' ",
342
+ prompt="Can you tell me about the AD Knowledge Portal dataset? ",
346
343
enable_trace=True,
347
344
print_response=True,
348
345
)
You can’t perform that action at this time.
0 commit comments