codex-agent-framework 0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- codex_agent/__init__.py +38 -0
- codex_agent/__main__.py +18 -0
- codex_agent/agent.py +1179 -0
- codex_agent/ai.py +494 -0
- codex_agent/builtin_commands.py +136 -0
- codex_agent/builtin_providers.py +42 -0
- codex_agent/builtin_tools.py +418 -0
- codex_agent/chat.py +139 -0
- codex_agent/command.py +19 -0
- codex_agent/event.py +136 -0
- codex_agent/get_text/__init__.py +20 -0
- codex_agent/get_text/default_gitignore +110 -0
- codex_agent/get_text/get_text.py +1240 -0
- codex_agent/get_text/simpler_get_text.py +184 -0
- codex_agent/get_webdriver.py +44 -0
- codex_agent/image.py +304 -0
- codex_agent/latex.py +165 -0
- codex_agent/memory.py +318 -0
- codex_agent/message.py +423 -0
- codex_agent/prompts/image_generation_system_prompt.txt +13 -0
- codex_agent/prompts/system_prompt.txt +88 -0
- codex_agent/provider.py +19 -0
- codex_agent/stream_utils.py +645 -0
- codex_agent/tool.py +235 -0
- codex_agent/utils.py +374 -0
- codex_agent/voice.py +353 -0
- codex_agent/worker.py +190 -0
- codex_agent_framework-0.1.1.dist-info/METADATA +361 -0
- codex_agent_framework-0.1.1.dist-info/RECORD +33 -0
- codex_agent_framework-0.1.1.dist-info/WHEEL +5 -0
- codex_agent_framework-0.1.1.dist-info/entry_points.txt +2 -0
- codex_agent_framework-0.1.1.dist-info/licenses/LICENSE +21 -0
- codex_agent_framework-0.1.1.dist-info/top_level.txt +1 -0
codex_agent/__init__.py
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from .agent import Agent, AgentSession
|
|
2
|
+
from .event import (
|
|
3
|
+
AgentInterrupted,
|
|
4
|
+
AgentInterruptedEvent,
|
|
5
|
+
AudioPlaybackEvent,
|
|
6
|
+
Event,
|
|
7
|
+
EventBus,
|
|
8
|
+
MessageAddedEvent,
|
|
9
|
+
ResponseContentDeltaEvent,
|
|
10
|
+
ResponseDoneEvent,
|
|
11
|
+
ResponseMessageDeltaEvent,
|
|
12
|
+
ResponseOutputItemEvent,
|
|
13
|
+
ResponseReasoningDeltaEvent,
|
|
14
|
+
ResponseStartEvent,
|
|
15
|
+
ResponseToolCallsDeltaEvent,
|
|
16
|
+
ServerToolCallEvent,
|
|
17
|
+
ToolCallDoneEvent,
|
|
18
|
+
ToolCallStartEvent,
|
|
19
|
+
)
|
|
20
|
+
from .message import (
|
|
21
|
+
AssistantMessage,
|
|
22
|
+
CompactionMessage,
|
|
23
|
+
DeveloperMessage,
|
|
24
|
+
Message,
|
|
25
|
+
MessageChunk,
|
|
26
|
+
ProviderMessage,
|
|
27
|
+
ServerToolResponseMessage,
|
|
28
|
+
SystemMessage,
|
|
29
|
+
ToolResultMessage,
|
|
30
|
+
ToolResultWrapper,
|
|
31
|
+
UserMessage,
|
|
32
|
+
)
|
|
33
|
+
from .image import ImageMessage
|
|
34
|
+
from .memory import MemoryEntry, RAGMemory, RAGMemoryConfig
|
|
35
|
+
from .command import command
|
|
36
|
+
from .provider import provider
|
|
37
|
+
from .tool import ImageGenerationTool, ServerTool, Tool, WebSearchTool, get_agent, tool
|
|
38
|
+
from .worker import SummarizerWorker, TurnSummaryWorker, Worker
|
codex_agent/__main__.py
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
|
|
3
|
+
from . import Agent
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def main():
|
|
7
|
+
package_dir = Path(__file__).parent
|
|
8
|
+
agent = Agent(
|
|
9
|
+
system=str(package_dir / 'prompts' / 'system_prompt.txt'),
|
|
10
|
+
voice_instructions="You're a lively and friendly female in her mid twenties. You speak french with a easy-going and cheerful tone.",
|
|
11
|
+
username="Baptiste",
|
|
12
|
+
userage="40",
|
|
13
|
+
)
|
|
14
|
+
agent.interact()
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
if __name__ == '__main__':
|
|
18
|
+
main()
|