Skip to main content
Beyond the event payload argument into your agent, you can also accept a second optional argument: config. The config should be a Pydantic model that you define, which can hold configurable state for your agent such as prompts, Sentry project to Github project mappings, and so on.

Example

When your agent is registered, we generate a dynamic form from your Pydantic model schema. You can edit the configuration state on the agent page.