{"id":33760175,"url":"https://github.com/inkybubble/llm_patterns_openai","last_synced_at":"2026-06-06T00:31:35.068Z","repository":{"id":326815496,"uuid":"1106875875","full_name":"inkybubble/llm_patterns_openai","owner":"inkybubble","description":"Patterns for the responses API (openai) and for iterative validation of toy structured output","archived":false,"fork":false,"pushed_at":"2025-11-30T06:06:46.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-02T10:55:51.231Z","etag":null,"topics":["multiturn","openai","responses-api","tool-use"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inkybubble.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-30T05:48:07.000Z","updated_at":"2025-11-30T06:06:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/inkybubble/llm_patterns_openai","commit_stats":null,"previous_names":["inkybubble/llm_patterns_openai"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/inkybubble/llm_patterns_openai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkybubble%2Fllm_patterns_openai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkybubble%2Fllm_patterns_openai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkybubble%2Fllm_patterns_openai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkybubble%2Fllm_patterns_openai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inkybubble","download_url":"https://codeload.github.com/inkybubble/llm_patterns_openai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkybubble%2Fllm_patterns_openai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33965591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["multiturn","openai","responses-api","tool-use"],"created_at":"2025-12-05T10:00:46.767Z","updated_at":"2026-06-06T00:31:35.041Z","avatar_url":"https://github.com/inkybubble.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LLM Patterns in openai - a multi-turn chat with tool-usage \n\nChat pipeline with tool calling. Starting point from OpenAI's function calling quickstart. A reference that I can use for other applications, to structure outputs.\nThe horoscope example was inspired by the openai developer guide and lightly modified.\n\n## Setup\n\n```\nuv sync\n```\n\n## Chat pipeline\n\n`src/chat.py` - Multi-turn chat class that:\n- Maintains conversation history\n- Routes tool calls to handlers\n- Retries on validation errors for toy structured outputs\n- Respects system prompt instructions\n\n## Examples\n\n`examples/00_horoscope_pipeline.py` - Pipeline test using fake horoscope tools. Tests multi-turn chat, tool selection, input validation, system prompt influence.\n\n```\nuv run examples/00_horoscope_pipeline.py\n```\n\nSee `examples/00_horoscope_pipeline.md` for sample output walkthrough.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finkybubble%2Fllm_patterns_openai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finkybubble%2Fllm_patterns_openai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finkybubble%2Fllm_patterns_openai/lists"}