Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion flo_ai/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from typing import Any, Iterator, Union
from flo_ai.router.flo_router import FloRouter
from flo_ai.state.flo_session import FloSession
from flo_ai.models.flo_llm_agent import FloLLMAgent
from flo_ai.models.flo_executable import ExecutableFlo
from flo_ai.error.flo_exception import FloException
from flo_ai.constants.common_constants import DOCUMENTATION_WEBSITE
Expand Down Expand Up @@ -95,7 +96,8 @@ def build(
executable: ExecutableFlo = build_supervised_team(
session, to_supervised_team(yaml)
)
if isinstance(executable, FloAgent):
# TODO fix this for all agents later
if isinstance(executable, FloAgent) or isinstance(executable, FloLLMAgent):
executable = FloNode.Builder(session).build_from_agent(executable)
return Flo(session, executable)
if routed_team is not None:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "flo-ai"
version = "0.0.5-dev1"
version = "0.0.5-dev2"
description = "A easy way to create structured AI agents"
authors = ["vizsatiz <vishnu@rootfor.xyz>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='flo-ai',
version='0.0.5-dev1',
version='0.0.5-dev2',
author='Rootflo',
description='Create composable AI agents',
long_description=long_description,
Expand Down