Skip to content

refactor(agents): describe the LLM outputs in the response schemas in… - #321

Merged
musayann merged 1 commit into
feat/gemini-3-modelsfrom
feat/structured-output-prompts
Oct 8, 2026
Merged

musayann merged 1 commit into
feat/gemini-3-modelsfrom
feat/structured-output-prompts

Conversation

@irumvanselme

@irumvanselme irumvanselme commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

…stead of the prompts

The response schema of the structured output now carries the description of every output field (Field(description=...)), so the prompts no longer repeat JSON-format instructions:

  • move the output field descriptions of every agent, tool and evaluator from the prompts to their response models
  • rename get_json_response_instructions to get_response_instructions
  • type the data extraction references, as an untyped object makes the Gemini 3.x models return null fields
  • prompt tweaks: router keyword routing, transition decision when the user volunteers duties, CV extraction keeps names in their original script
  • career readiness: describe the topic_status record fields in the schema, and use the base response model in support mode so that an empty topic_status is accepted

Fixes

@irumvanselme
irumvanselme added this pull request to stack #319 October 5, 2026 08:49
…stead of the prompts

The response schema of the structured output now carries the description of every output field
(Field(description=...)), so the prompts no longer repeat JSON-format instructions:
- move the output field descriptions of every agent, tool and evaluator from the prompts to their response models
- rename get_json_response_instructions to get_response_instructions
- type the data extraction references, as an untyped object makes the Gemini 3.x models return null fields
- prompt tweaks: router keyword routing, transition decision when the user volunteers duties,
  CV extraction keeps names in their original script
- career readiness: describe the topic_status record fields in the schema,
  and use the base response model in support mode so that an empty topic_status is accepted
@irumvanselme
irumvanselme force-pushed the feat/structured-output-prompts branch from 3d99912 to d4fc468 Compare October 7, 2026 06:37
@musayann
musayann merged commit f76a984 into main Oct 8, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants