Humans RAG built-in
Structured outputs
Reasoning built-in
Monitoring & Debugging built-in
// pip install -U bitcapython3 -m venv aienv
aienv/scripts/activatepip install -U bitca openai duckduckgo-searchsetx OPENAI_API_KEY sk-***python web_search.pyfrom bitca.human import Humans
from bitca.model.openai import OpenAIChat
from bitca.tools.yfinance import YFinanceTools
finance_human = Human(
name="Finance Agent",
model=OpenAIChat(id="gpt-4o"),
tools=[YFinanceTools(stock_price=True, analyst_recommendations=True, company_info=True, company_news=True)],
instructions=["Use tables to display data"],
show_tool_calls=True,
markdown=True,
)
finance_human.print_response("Summarize analyst recommendations for NVDA", stream=True)pip install yfinancepython finance_human.pyfrom bitca.human import Human
from bitca.model.openai import OpenAIChat
from bitca.tools.duckduckgo import DuckDuckGo
human= Human(
model=OpenAIChat(id="gpt-4o"),
tools=[DuckDuckGo()],
markdown=True,
)
human.print_response(
"Tell me about this image and give me the latest news about it.",
images=["https://upload.wikimedia.org/wikipedia/commons/b/bf/Krakow_-_Kosciol_Mariacki.jpg"],
stream=True,
)python image_human.pyfrom bitca.human import Human
from bitca.model.openai import OpenAIChat
from bitca.tools.duckduckgo import DuckDuckGo
from bitca.tools.yfinance import YFinanceTools
web_human = Human(
name="Web Human",
role="Search the web for information",
model=OpenAIChat(id="gpt-4o"),
tools=[DuckDuckGo()],
instructions=["Always include sources"],
show_tool_calls=True,
markdown=True,
)
finance_human = Human(
name="Finance Human",
role="Get financial data",
model=OpenAIChat(id="gpt-4o"),
tools=[YFinanceTools(stock_price=True, analyst_recommendations=True, company_info=True)],
instructions=["Use tables to display data"],
show_tool_calls=True,
markdown=True,
)
human_team = Human(
team=[web_human, finance_human],
instructions=["Always include sources", "Use tables to display data"],
show_tool_calls=True,
markdown=True,
)
human_team.print_response("Summarize analyst recommendations and share the latest news for NVDA", stream=True)python human_team.py