← Về thư mục
openai4s/agent/progress_circuit.py
- _CallLike · class · L77-L80 — class _CallLike(Protocol)
- canonical_arguments · function · L83-L103 — def canonical_arguments(value: Any) -> Any
- fingerprint_native_calls · function · L106-L120 — def fingerprint_native_calls(calls: Sequence[_CallLike]) -> str
- fingerprint_native_results · function · L123-L143 — def fingerprint_native_results(results: Sequence[Mapping[str, Any]]) -> str
- normalize_tool_error · function · L146-L154 — def normalize_tool_error(value: Any) -> str
- is_provider_transient_error · function · L157-L159 — def is_provider_transient_error(value: Any) -> bool
- attach_progress_circuit · function · L162-L165 — def attach_progress_circuit(state: RunState, circuit: ProgressCircuit) -> None
- circuit_from_state · function · L168-L170 — def circuit_from_state(state: RunState) -> ProgressCircuit | None
- reconstruct_progress_circuit · function · L173-L186 — def reconstruct_progress_circuit( groups: Sequence[Mapping[str, Any]], ) -> ProgressCircuit
- ProgressCircuit · class · L190-L374 — class ProgressCircuit
- tripped · method · L206-L207 — def tripped(self) -> bool
- observe_routed_action · method · L209-L222 — def observe_routed_action(self, action: Action | None, reply: ModelReply) -> None
- observe_execution · method · L224-L231 — def observe_execution( self, action: Action | None, outcome: ExecutionOutcome ) -> None
- observe_native_batch · method · L233-L262 — def observe_native_batch( self, calls: Sequence[_CallLike], results: Sequence[Mapping[str, Any]] | None = None, ) -> None
- observe_assistant_text · method · L264-L281 — def observe_assistant_text(self, content: str) -> None: # Anything shorter than the long-text floor -- an empty content with a # reasoning insert included -- is not observed at all, so it neither # counts as a repeat nor resets a streak.
- observe_code_progress · method · L283-L288 — def observe_code_progress(self) -> None
- observe_group · method · L290-L299 — def observe_group(self, group: Mapping[str, Any]) -> None
- _observe_native_group · method · L301-L316 — def _observe_native_group(self, group: Mapping[str, Any]) -> None
- _observe_tool_results · method · L318-L350 — def _observe_tool_results(self, results: Sequence[Mapping[str, Any]]) -> None
- _reset_same_action · method · L352-L355 — def _reset_same_action(self) -> None
- _reset_error · method · L357-L359 — def _reset_error(self) -> None
- _maybe_trip · method · L361-L374 — def _maybe_trip(self) -> None
- _ProposedCall · class · L378-L381 — class _ProposedCall
- _epoch_groups · function · L384-L399 — def _epoch_groups( groups: Sequence[Mapping[str, Any]], ) -> list[Mapping[str, Any]]
- _call_is_malformed · function · L402-L405 — def _call_is_malformed(call: _CallLike) -> bool
- _call_from_proposed · function · L408-L419 — def _call_from_proposed(event: Mapping[str, Any]) -> _ProposedCall | None
- _mapping · function · L422-L423 — def _mapping(value: Any) -> Mapping[str, Any] | None
- _group_assistant_text · function · L426-L433 — def _group_assistant_text(group: Mapping[str, Any]) -> str
- _normalize_whitespace · function · L436-L437 — def _normalize_whitespace(text: str) -> str
- _near_duplicate · function · L440-L456 — def _near_duplicate(left: str, right: str) -> bool
- _result_text · function · L459-L474 — def _result_text(value: Any) -> str