← Về thư mục
openai4s/datapro.py
- tool_descriptor · function · L40-L63 — def tool_descriptor() -> dict[str, Any]
- DataProStore · class · L66-L88 — class DataProStore(Protocol)
- get_setting · method · L69-L69 — def get_setting(self, key: str, default: str | None = None) -> str | None
- get_secret_setting · method · L71-L71 — def get_secret_setting(self, key: str) -> str
- set_secret_setting · method · L73-L73 — def set_secret_setting(self, key: str, value: str, *, scope: str) -> str
- connector_env · method · L75-L75 — def connector_env(self, connector: dict) -> dict
- index_datapro_result · method · L77-L86 — def index_datapro_result( self, *, query: str, structured_content: Mapping[str, Any], frame_id: str | None = None, artifact_id: str | None = None, occurrence_id: str | None = None, source_content: Any | None = None, ) -> dict[str, Any]
- link_datapro_index_artifact · method · L88-L88 — def link_datapro_index_artifact(self, batch_id: str, artifact_id: str) -> None
- DataProCredentialError · class · L91-L92 — class DataProCredentialError(RuntimeError)
- DataProIndexError · class · L95-L96 — class DataProIndexError(RuntimeError)
- _validated_agent_plan_key · function · L99-L121 — def _validated_agent_plan_key(value: Any) -> str
- _has_valid_agent_plan_key · function · L124-L129 — def _has_valid_agent_plan_key(value: Any) -> bool
- managed_connector_command · function · L132-L135 — def managed_connector_command() -> dict[str, str]
- _provider · function · L138-L139 — def _provider(store: DataProStore) -> str
- explicit_agent_plan_key · function · L142-L145 — def explicit_agent_plan_key(store: DataProStore) -> str
- is_volcengine_endpoint · function · L148-L165 — def is_volcengine_endpoint(base_url: str) -> bool
- ark_key_for_datapro · function · L168-L180 — def ark_key_for_datapro(store: DataProStore) -> str
- resolve_agent_plan_key · function · L183-L192 — def resolve_agent_plan_key(store: DataProStore) -> str
- credential_state · function · L195-L202 — def credential_state(store: DataProStore) -> dict[str, bool]
- save_agent_plan_key · function · L205-L225 — def save_agent_plan_key(store: DataProStore, value: Any) -> None
- _outbound_headers · function · L228-L241 — def _outbound_headers(store: DataProStore) -> dict[str, str]
- runtime_cache_scope · function · L244-L255 — def runtime_cache_scope(store: DataProStore) -> str
- connector_runtime_config · function · L258-L284 — def connector_runtime_config(store: DataProStore, connector: dict) -> dict
- structured_content · function · L287-L294 — def structured_content(result: Mapping[str, Any] | Any) -> dict[str, Any]
- strict_code · function · L297-L303 — def strict_code(content: Mapping[str, Any] | Any) -> int | None
- status_message · function · L306-L313 — def status_message(code: int | None) -> str
- redact_secret · function · L316-L319 — def redact_secret(value: Any, secret: str) -> Any
- redact_mcp_result · function · L322-L354 — def redact_mcp_result(result: Mapping[str, Any], secret: str) -> dict[str, Any]
- public_search_result · function · L357-L383 — def public_search_result(result: Mapping[str, Any], secret: str) -> dict[str, Any]
- is_successful_search · function · L386-L395 — def is_successful_search(result: Mapping[str, Any] | Any) -> bool
- _public_structured_content · function · L398-L406 — def _public_structured_content(result: Mapping[str, Any] | Any) -> dict[str, Any]
- index_successful_search · function · L409-L491 — def index_successful_search( store: DataProStore, *, query: str, result: Mapping[str, Any], frame_id: str | None = None, artifact_id: str | None = None, secrets: tuple[str, ...] = (), source_result: Mapping[str, Any] | None = None, ) -> dict[str, Any] | None
- result_artifact_payload · function · L494-L511 — def result_artifact_payload( *, query: str, result: Mapping[str, Any], frame_id: str | None = None ) -> dict[str, Any]
- validate_query · function · L514-L522 — def validate_query(value: Any) -> str