hired.content#
Content generation logic and AI agent implementations.
Implement:
DefaultAIAgent: Basic implementation using local LLM or API
content source factories for common formats
content extraction and filtering utilities
Classes
|
Default AI agent implementation (mock). |
|
Implements ContentSource for dictionary data. |
|
Implements ContentSource for file-based data. |
|
AI agent that tailors a candidate's profile to a job via an LLM. |
- class hired.content.DefaultAIAgent(*, model='default', api_key=None)[source]#
Bases:
objectDefault AI agent implementation (mock).
- class hired.content.DictContentSource(data)[source]#
Bases:
objectImplements ContentSource for dictionary data.
- class hired.content.FileContentSource(path)[source]#
Bases:
objectImplements ContentSource for file-based data.
- class hired.content.LLMResumeAgent(*, model='gpt-4o-mini', client=None, api_key=None)[source]#
Bases:
objectAI agent that tailors a candidate’s profile to a job via an LLM.
Opt-in alternative to
DefaultAIAgent(which is a pass-through). It is dependency-injected and lazy:openaiis imported only when an agent is used without an injectedclient, so importinghirednever requiresopenai, and no API key is read at construction time. Inject aclient(anything exposing the OpenAI-stylechat.completions.create) to test without network or secrets.>>> class _FakeClient: ... class chat: ... class completions: ... @staticmethod ... def create(**_): ... ...