Skip to content

Commit

Permalink
Removes unused system prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
josead committed Jan 2, 2025
1 parent 2c84e65 commit 260a610
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/test_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1305,10 +1305,6 @@ async def func() -> str:

dynamic_value = 'B'

@agent.system_prompt
async def func_two():
return 'This is not added'

res_two = agent.run_sync('World', message_history=res.all_messages())

assert res_two.all_messages() == snapshot(
Expand Down Expand Up @@ -1382,14 +1378,6 @@ async def func():

dynamic_value = 'B'

@agent.system_prompt
async def func_two():
return 'This is a new prompt, but it wont reach the model'

@agent.system_prompt(dynamic=True)
async def func_two_dynamic():
return 'This is a new prompt, but it wont reach the model, even though is dynamic'

res_two = agent.run_sync('World', message_history=res.all_messages())

assert res_two.all_messages() == snapshot(
Expand Down

0 comments on commit 260a610

Please sign in to comment.