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.
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/PKG-INFO +1 -1
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/__init__.py +2 -1
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/llm/openai_llm.py +2 -2
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/llm/openai_vllm.py +7 -1
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/pyproject.toml +1 -1
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/README.md +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/arium/README.md +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/arium/__init__.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/arium/arium.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/arium/base.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/arium/builder.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/arium/examples.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/arium/memory.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/arium/models.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/builder/agent_builder.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/formatter/yaml_format_parser.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/llm/__init__.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/llm/anthropic_llm.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/llm/base_llm.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/llm/gemini_llm.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/llm/ollama_llm.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/models/__init__.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/models/agent.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/models/agent_error.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/models/base_agent.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/tool/__init__.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/tool/base_tool.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/tool/flo_tool.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/utils/__init__.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/utils/flo_utils.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/utils/logger.py +0 -0
- {flo_ai-1.0.0.dev5 → flo_ai-1.0.0.dev6}/flo_ai/utils/variable_extractor.py +0 -0
|
@@ -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('
|
|
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('
|
|
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['
|
|
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':
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|