flo-ai 1.0.0.dev5__tar.gz → 1.0.0.dev6__tar.gz

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.
Files changed (32) hide show
  1. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/PKG-INFO +1 -1
  2. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/__init__.py +2 -1
  3. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/llm/openai_llm.py +2 -2
  4. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/llm/openai_vllm.py +7 -1
  5. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/pyproject.toml +1 -1
  6. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/README.md +0 -0
  7. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/arium/README.md +0 -0
  8. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/arium/__init__.py +0 -0
  9. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/arium/arium.py +0 -0
  10. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/arium/base.py +0 -0
  11. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/arium/builder.py +0 -0
  12. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/arium/examples.py +0 -0
  13. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/arium/memory.py +0 -0
  14. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/arium/models.py +0 -0
  15. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/builder/agent_builder.py +0 -0
  16. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/formatter/yaml_format_parser.py +0 -0
  17. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/llm/__init__.py +0 -0
  18. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/llm/anthropic_llm.py +0 -0
  19. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/llm/base_llm.py +0 -0
  20. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/llm/gemini_llm.py +0 -0
  21. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/llm/ollama_llm.py +0 -0
  22. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/models/__init__.py +0 -0
  23. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/models/agent.py +0 -0
  24. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/models/agent_error.py +0 -0
  25. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/models/base_agent.py +0 -0
  26. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/tool/__init__.py +0 -0
  27. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/tool/base_tool.py +0 -0
  28. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/tool/flo_tool.py +0 -0
  29. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/utils/__init__.py +0 -0
  30. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/utils/flo_utils.py +0 -0
  31. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/utils/logger.py +0 -0
  32. {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/utils/variable_extractor.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: flo_ai
3
- Version: 1.0.0.dev5
3
+ Version: 1.0.0.dev6
4
4
  Summary: A easy way to create structured AI agents
5
5
  License: MIT
6
6
  Author: rootflo
@@ -8,7 +8,7 @@ from .models import Agent, AgentError, BaseAgent, AgentType, ReasoningPattern
8
8
  from .builder.agent_builder import AgentBuilder
9
9
 
10
10
  # LLM package - Language model integrations
11
- from .llm import BaseLLM, Anthropic, OpenAI, OllamaLLM, Gemini, ImageMessage
11
+ from .llm import BaseLLM, Anthropic, OpenAI, OllamaLLM, Gemini, OpenAIVLLM, ImageMessage
12
12
 
13
13
  # Tool package - Tool framework components
14
14
  from .tool import Tool, ToolExecutionError, flo_tool, create_tool_from_function
@@ -43,6 +43,7 @@ __all__ = [
43
43
  'OpenAI',
44
44
  'OllamaLLM',
45
45
  'Gemini',
46
+ 'OpenAIVLLM',
46
47
  # LLM DataClass
47
48
  'ImageMessage',
48
49
  # Tools
@@ -28,11 +28,11 @@ class OpenAI(BaseLLM):
28
28
  kwargs['response_format'] = {'type': 'json_object'}
29
29
  kwargs['functions'] = [
30
30
  {
31
- 'name': output_schema.get('name', 'default'),
31
+ 'name': output_schema.get('title', 'default'),
32
32
  'parameters': output_schema.get('schema', output_schema),
33
33
  }
34
34
  ]
35
- kwargs['function_call'] = {'name': output_schema.get('name', 'default')}
35
+ kwargs['function_call'] = {'name': output_schema.get('title', 'default')}
36
36
 
37
37
  # Add JSON format instruction to the system prompt
38
38
  if messages and messages[0]['role'] == 'system':
@@ -25,7 +25,13 @@ class OpenAIVLLM(OpenAI):
25
25
  ) -> Any:
26
26
  # Convert output_schema to OpenAI format if provided
27
27
  if output_schema:
28
- kwargs['extra_body'] = {'guided_json': output_schema.get('schema')}
28
+ kwargs['response_format'] = {
29
+ 'type': 'json_schema',
30
+ 'json_schema': {
31
+ 'name': output_schema.get('title', 'default'),
32
+ 'schema': output_schema.get('schema', output_schema),
33
+ },
34
+ }
29
35
 
30
36
  # Add JSON format instruction to the system prompt
31
37
  if messages and messages[0]['role'] == 'system':
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "flo_ai"
3
- version = "1.0.0-dev5"
3
+ version = "1.0.0-dev6"
4
4
  description = "A easy way to create structured AI agents"
5
5
  authors = ["rootflo <*@rootflo.ai>"]
6
6
  license = "MIT"
File without changes