You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
What's New
Agent Decorators module (sap_cloud_sdk.agent_decorators): A new configuration-as-code API for SAP AI agents. Developers annotate zero-argument functions with three decorators to expose agent configuration fields to a low-code UI:
@prompt_section(key, label, description, validation=None) — marks a function that returns a prompt string.
@agent_config(key, label, description) — marks a function that returns a generic configuration value.
@agent_model(key, label, description="") — marks a function that returns a model identifier string.
AgentDecoratorError is raised at decoration time if key is empty or whitespace-only.