MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / _has_text_tools

Method _has_text_tools

examples/server/server.py:5393–5397  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5391 return value
5392
5393 def _has_text_tools(self) -> bool:
5394 return any(
5395 isinstance(tool_schema, dict) and tool_schema.get("content_type") == "text"
5396 for tool_schema in self._tool_schemas.values()
5397 )
5398
5399 @staticmethod
5400 def _append_parsed_text(parsed: Dict[str, Any], key: str, text: str) -> None:

Callers 1

_parse_response_valueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected