Module adcp.types.generated_poc.tasks_get_response
Classes
class Details (**data: Any)-
Expand source code
class Details(AdCPBaseModel): model_config = ConfigDict( extra='allow', ) domain: Annotated[Domain | None, Field(description='AdCP domain where error occurred')] = None operation: Annotated[str | None, Field(description='Specific operation that failed')] = None specific_context: Annotated[ dict[str, Any] | None, Field(description='Domain-specific error context') ] = NoneBase model for AdCP types with spec-compliant serialization.
AdCP JSON schemas use additionalProperties: false and do not allow null for optional fields. Therefore, optional fields must be omitted entirely when not present (not sent as null).
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors
- AdCPBaseModel
- pydantic.main.BaseModel
Class variables
var domain : Domain | Nonevar model_configvar operation : str | Nonevar specific_context : dict[str, typing.Any] | None
Inherited members
class Domain (*args, **kwds)-
Expand source code
class Domain(Enum): media_buy = 'media-buy' signals = 'signals'Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3Access them by:
- attribute access::
>>> Color.RED <Color.RED: 1>- value lookup:
>>> Color(1) <Color.RED: 1>- name lookup:
>>> Color['RED'] <Color.RED: 1>Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
Ancestors
- enum.Enum
Class variables
var media_buyvar signals
class Error (**data: Any)-
Expand source code
class Error(AdCPBaseModel): model_config = ConfigDict( extra='forbid', ) code: Annotated[str, Field(description='Error code for programmatic handling')] details: Annotated[Details | None, Field(description='Additional error context')] = None message: Annotated[str, Field(description='Detailed error message')]Base model for AdCP types with spec-compliant serialization.
AdCP JSON schemas use additionalProperties: false and do not allow null for optional fields. Therefore, optional fields must be omitted entirely when not present (not sent as null).
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors
- AdCPBaseModel
- pydantic.main.BaseModel
Class variables
var code : strvar details : Details | Nonevar message : strvar model_config
Inherited members
class HistoryItem (**data: Any)-
Expand source code
class HistoryItem(AdCPBaseModel): model_config = ConfigDict( extra='forbid', ) data: Annotated[dict[str, Any], Field(description='The full request or response payload')] timestamp: Annotated[AwareDatetime, Field(description='When this exchange occurred (ISO 8601)')] type: Annotated[ Type, Field(description='Whether this was a request from client or response from server') ]Base model for AdCP types with spec-compliant serialization.
AdCP JSON schemas use additionalProperties: false and do not allow null for optional fields. Therefore, optional fields must be omitted entirely when not present (not sent as null).
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors
- AdCPBaseModel
- pydantic.main.BaseModel
Class variables
var data : dict[str, typing.Any]var model_configvar timestamp : pydantic.types.AwareDatetimevar type : Type
Inherited members
class Progress (**data: Any)-
Expand source code
class Progress(AdCPBaseModel): model_config = ConfigDict( extra='forbid', ) current_step: Annotated[ str | None, Field(description='Current step or phase of the operation') ] = None percentage: Annotated[ float | None, Field(description='Completion percentage (0-100)', ge=0.0, le=100.0) ] = None step_number: Annotated[int | None, Field(description='Current step number', ge=1)] = None total_steps: Annotated[ int | None, Field(description='Total number of steps in the operation', ge=1) ] = NoneBase model for AdCP types with spec-compliant serialization.
AdCP JSON schemas use additionalProperties: false and do not allow null for optional fields. Therefore, optional fields must be omitted entirely when not present (not sent as null).
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors
- AdCPBaseModel
- pydantic.main.BaseModel
Class variables
var current_step : str | Nonevar model_configvar percentage : float | Nonevar step_number : int | Nonevar total_steps : int | None
Inherited members
class TasksGetResponse (**data: Any)-
Expand source code
class TasksGetResponse(AdCPBaseModel): model_config = ConfigDict( extra='forbid', ) completed_at: Annotated[ AwareDatetime | None, Field( description='When the task completed (ISO 8601, only for completed/failed/canceled tasks)' ), ] = None context: Annotated[ dict[str, Any] | None, Field( description='Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.' ), ] = None created_at: Annotated[ AwareDatetime, Field(description='When the task was initially created (ISO 8601)') ] domain: Annotated[Domain, Field(description='AdCP domain this task belongs to')] error: Annotated[Error | None, Field(description='Error details for failed tasks')] = None has_webhook: Annotated[ bool | None, Field(description='Whether this task has webhook configuration') ] = None history: Annotated[ list[HistoryItem] | None, Field( description='Complete conversation history for this task (only included if include_history was true in request)' ), ] = None progress: Annotated[ Progress | None, Field(description='Progress information for long-running tasks') ] = None status: Annotated[task_status.TaskStatus, Field(description='Current task status')] task_id: Annotated[str, Field(description='Unique identifier for this task')] task_type: Annotated[task_type_1.TaskType, Field(description='Type of AdCP operation')] updated_at: Annotated[ AwareDatetime, Field(description='When the task was last updated (ISO 8601)') ]Base model for AdCP types with spec-compliant serialization.
AdCP JSON schemas use additionalProperties: false and do not allow null for optional fields. Therefore, optional fields must be omitted entirely when not present (not sent as null).
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors
- AdCPBaseModel
- pydantic.main.BaseModel
Class variables
var completed_at : pydantic.types.AwareDatetime | Nonevar context : dict[str, typing.Any] | Nonevar created_at : pydantic.types.AwareDatetimevar domain : Domainvar error : Error | Nonevar has_webhook : bool | Nonevar history : list[HistoryItem] | Nonevar model_configvar progress : Progress | Nonevar status : TaskStatusvar task_id : strvar task_type : TaskTypevar updated_at : pydantic.types.AwareDatetime
Inherited members
class Type (*args, **kwds)-
Expand source code
class Type(Enum): request = 'request' response = 'response'Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3Access them by:
- attribute access::
>>> Color.RED <Color.RED: 1>- value lookup:
>>> Color(1) <Color.RED: 1>- name lookup:
>>> Color['RED'] <Color.RED: 1>Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
Ancestors
- enum.Enum
Class variables
var requestvar response