julee.services.knowledge_service.anthropic

Anthropic service implementations for julee domain.

This module exports Anthropic-specific implementations of service protocols for the Capture, Extract, Assemble, Publish workflow.

Submodules

Classes

AnthropicKnowledgeService

Anthropic implementation of the KnowledgeService protocol.

Package Contents

class julee.services.knowledge_service.anthropic.AnthropicKnowledgeService[source]

Bases: julee.services.knowledge_service.knowledge_service.KnowledgeService

Anthropic implementation of the KnowledgeService protocol.

This class handles interactions with Anthropic’s API for document registration and query execution. It implements the KnowledgeService protocol with Anthropic-specific logic.

async execute_query(config, query_text, output_schema=None, service_file_ids=None, query_metadata=None, assistant_prompt=None)[source]

Execute a query against Anthropic.

Parameters:
  • config (julee.domain.models.knowledge_service_config.KnowledgeServiceConfig) – KnowledgeServiceConfig for this operation

  • query_text (str) – The query to execute

  • output_schema (dict[str, Any] | None) – Optional JSON schema for inclusion in prompt (not used for structured outputs)

  • service_file_ids (list[str] | None) – Optional list of Anthropic file IDs to provide as context for the query

  • query_metadata (dict[str, Any] | None) – Optional Anthropic-specific configuration such as model, temperature, max_tokens, etc.

  • assistant_prompt (str | None) – Optional assistant message content to constrain or prime the model’s response.

Returns:

QueryResult with Anthropic query results

Return type:

julee.services.knowledge_service.knowledge_service.QueryResult

async register_file(config, document)[source]

Register a document file with Anthropic.

Parameters:
Returns:

FileRegistrationResult with Anthropic-specific details

Return type:

julee.services.knowledge_service.knowledge_service.FileRegistrationResult