<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>sdk - Sharur</title><link>https://goppydae.github.io/sharur/reference/sdk/index.html</link><description>sdk import "github.com/goppydae/sharur/sdk" Package sdk provides the public Go SDK for embedding sharur agents in your own applications.
Example:
ag, err := sdk.NewAgent(sdk.Config{ Model: "llama3", Provider: "ollama", Tools: sdk.DefaultTools(), }) if err != nil { panic(err) } ag.Subscribe(func(e sdk.Event) { if e.Type == sdk.EventTextDelta { fmt.Print(e.Content) } }) if err := ag.Prompt(context.Background(), "What files are in this directory?"); err != nil { panic(err) } &lt;-ag.Idle() Index Constants type Agent func NewAgent(cfg Config) (*Agent, error) type CompactionPrep type CompactionResult type Config type Event type EventType type Extension type InputAction type InputResult type SessionEndReason type SessionStartReason type ThinkingLevel type Tool func DefaultTools() []Tool type ToolResult Constants</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://goppydae.github.io/sharur/reference/sdk/index.xml" rel="self" type="application/rss+xml"/></channel></rss>