fyodorov-llm-agents 0.0.73__py3-none-any.whl → 0.0.74__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,8 +96,8 @@ class BaseAgent():
96
96
  )
97
97
 
98
98
  # Process the response assuming it might include multiple tool calls
99
- if 'choices' in response and response['choices']:
100
- if response['choices'][0]['finish_reason'] == 'function_call':
99
+ if response.choices:
100
+ if response.choices[0]['finish_reason'] == 'function_call':
101
101
  tool_calls = response['choices'][0]['message']['function_call']
102
102
  result_queue.put(json.dumps(tool_calls))
103
103
  else:
@@ -106,6 +106,8 @@ class BaseAgent():
106
106
  else:
107
107
  result_queue.put(f"response id: {response.id}")
108
108
  result_queue.put(f"response choices: {response.choices}")
109
+ result_queue.put(f"response first choice: {response.choices[0]}")
110
+ result_queue.put(f"response first choice finish reason: {response.choices[0].finish_reason}")
109
111
  result_queue.put(f"Invalid response format: {response}")
110
112
 
111
113
  result_queue.put(None) # Signal the end of streaming
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fyodorov_llm_agents
3
- Version: 0.0.73
3
+ Version: 0.0.74
4
4
  Summary: Library for creating LLM-based agents with tools and RAG
5
5
  Author-email: Daniel Ransom <02masseur.alibis@icloud.com>
6
6
  Project-URL: Homepage, https://github.com/FyodorovAI/fyodorov-llm-agents
@@ -1,12 +1,12 @@
1
1
  fyodorov_llm_agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  fyodorov_llm_agents/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- fyodorov_llm_agents/agents/base_agent.py,sha256=JKUjmjhN4qJho6e4gLVk675dBIXZR6MOKJ2eNit4GeY,9502
3
+ fyodorov_llm_agents/agents/base_agent.py,sha256=lccYPJI6dg9EBCBfn87jpSQhhUQT3i6nKcZucV82G2M,9662
4
4
  fyodorov_llm_agents/agents/openai.py,sha256=yAGV3pcFcKfwHR1zuIiv1hmmWOUjDfrJloUGECciOlw,1167
5
5
  fyodorov_llm_agents/prompts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  fyodorov_llm_agents/prompts/prompt.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  fyodorov_llm_agents/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  fyodorov_llm_agents/tools/tool.py,sha256=bGZJe9stwILc4jcYsbY7-moAwy4dG6tBXg96lGqn75o,6410
9
- fyodorov_llm_agents-0.0.73.dist-info/METADATA,sha256=CbxyHH1wn5U8ampckurz1z7bNCbAm562471vNmDxqf4,2001
10
- fyodorov_llm_agents-0.0.73.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
11
- fyodorov_llm_agents-0.0.73.dist-info/top_level.txt,sha256=4QOslsBp8Gh7ng25DceA7fHp4KguTIdAxwURz97gH-g,20
12
- fyodorov_llm_agents-0.0.73.dist-info/RECORD,,
9
+ fyodorov_llm_agents-0.0.74.dist-info/METADATA,sha256=B4O1US1tlhRrMYHNapk94SJ9iDhrp4rSBIetQK_1Mlk,2001
10
+ fyodorov_llm_agents-0.0.74.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
11
+ fyodorov_llm_agents-0.0.74.dist-info/top_level.txt,sha256=4QOslsBp8Gh7ng25DceA7fHp4KguTIdAxwURz97gH-g,20
12
+ fyodorov_llm_agents-0.0.74.dist-info/RECORD,,