Metadata-Version: 2.4
Name: anosys-logger-4-openai
Version: 0.0.3
Summary: A helper package, to support implementation to AnoSys platform easly
Author-email: Moisis Vafeiadis <moisisv@gmail.com>
License: MIT License
        
        Copyright (c) 2025 Moysis Vafeiadis MoisisV@gmail.com
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://anosys.ai
Requires-Python: <3.13,>=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: opentelemetry-api>=1.22.0
Requires-Dist: opentelemetry-sdk>=1.22.0
Requires-Dist: traceai-openai>=0.1.0
Requires-Dist: requests>=2.25.1
Requires-Dist: python-dotenv>=0.21.0
Dynamic: license-file

# AnoSys Technologies

# AnoSys package for OpenAI implementations

Obtain your ANOSYS API key from https://console.anosys.ai/collect/integrationoptions

#Python example

```
pip install traceAI-openai-agents
pip install anosys-logger-4-openai
```

```
import httpx
import base64
from openai import OpenAI
import os

import AnosysLoggers
from AnosysLoggers import AnosysOpenAILogger
from agents import Agent, Runner, set_trace_processors

os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY", "your-api-key-here")
os.environ["ANOSYS_API_KEY"] = os.getenv("ANOSYS_API_KEY", "anosys-api-key-here")

AnosysOpenAILogger()
client = OpenAI()

response = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[
        {
            "role": "user",
            "content": [
                {"type": "text", "text": "Prove that Anosys is the best choice for AI observability"},
            ],
        },
    ],
)

print(response.choices[0].message.content)
```
