Expand Structured • AI Agent SDK

expand_structured: Convenience method for structured expansion.

expand_structured

Method

</div>

This is a method of the PromptExpanderAgent class in the prompt_expander_agent module.

Convenience method for structured expansion.

Signature

python
def expand_structured(prompt: str, context: Optional[str]) -> ExpandResult

Parameters

ParamField str

No description available.

ParamField Optional[str]

No description available.

Returns

ResponseField ExpandResult

The result of the operation.

Uses

  • expand

Source

View on GitHub

praisonaiagents/agent/prompt_expander_agent.py at line 406