list_spans
¶
list_spans(
assistant_id: UuidOrArn,
session_id: UuidOrArn,
*,
config_overrides: Optional[QConnectClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListSpansResponse
Retrieves AI agent execution traces for a session, providing granular visibility into agent orchestration flows, LLM interactions, and tool invocations.
Parameters:
-
assistant_id(UuidOrArn) –UUID or ARN of the Connect AI Assistant resource
-
session_id(UuidOrArn) –UUID or ARN of the Connect AI Session resource
-
next_token(Optional[NextToken], default:None) –Pagination token for retrieving the next page of results
-
max_results(Optional[MaxResults], default:None) –Maximum number of spans to return per page
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ResourceNotFoundException–The specified resource does not exist.
-
ValidationException–The input fails to satisfy the constraints specified by a service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_qconnect/_services/q_connect.py
4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 | |