Skip to content

Instantly share code, notes, and snippets.

@amosgyamfi
Created November 9, 2024 01:00
Show Gist options
  • Save amosgyamfi/08f36a7bcea988e6429f20f68cee7c8a to your computer and use it in GitHub Desktop.
Save amosgyamfi/08f36a7bcea988e6429f20f68cee7c8a to your computer and use it in GitHub Desktop.
from phi.agent import Agent
from phi.model.openai import OpenAIChat
task = "Create a SwiftUI view that allows users to switch between the tab bar and sidebar views using TabView and .tabView(.sidebarAdaptable) modifier. Put the content in TabSidebar.swift"
reasoning_agent = Agent(
model=OpenAIChat(id="gpt-4o-mini"),
reasoning=True,
markdown=True,
structured_outputs=True,
)
reasoning_agent.print_response(task, stream=True, show_full_reasoning=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment