Create Context Agent • AI Agent SDK

create_context_agent: Factory function to create a ContextAgent following Context Engineering and PRD methodology.

create_context_agent

Function

</div>

This function is defined in the context_agent module.

Factory function to create a ContextAgent following Context Engineering and PRD methodology.

Diagram

Input Data

Agent: create_context_agent

Output Result

Signature

python
def create_context_agent(llm: Optional[Union[str, Any]]) -> ContextAgent

Parameters

ParamField Optional

Language model to use (e.g., “gpt-4o-mini”, “claude-3-haiku”) **kwargs: Additional arguments to pass to ContextAgent constructor

Returns

ResponseField ContextAgent

Configured ContextAgent for comprehensive context generation following PRD principles

Uses

  • ContextAgent

Source

View on GitHub

praisonaiagents/agent/context_agent.py at line 2441


Related Documentation